Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What encoding type does VB6 use to encode forms, classes and modules?

Tags:

vb6

I am writing a C# script that instruments some VB6 code.

I need to output the generated code using the same encoding as VB6 to avoid losing character data. Right now it keeps changing Latin characters, like é, to null characters.

Notepad++ guesses that VB6 files are ANSCII by default, but since they don't have a BOM that's just an educated guess. I have tried encoding with ANSCII and it still loses character data.

Any ideas?

like image 772
John Smith Avatar asked Aug 10 '26 23:08

John Smith


1 Answers

After testing this encoding as windows-1252 preserves the characters.

like image 88
John Smith Avatar answered Aug 21 '26 15:08

John Smith