French Characters - Write to File

leikelmanleikelman Member Posts: 31
I am writing some data to a text file. This data contains French characters, which are not being properly encoded when writte to the text file. For Instance, the following phrase:

ÉCHOS DES MARCHÉS

is written to the text file as:

CHOS DES MARCHS

When I open the text file in Textpad, the file encoding it is applying is PC ANSI. When I debug the code, the variable holding the French characters is displaying them correctly in the debugger.

p.s. I already tried using the Ansi <-> Ascii converter, which didn't help as the French characters are being retrieved in the proper format from the database, but are getting copied to the text file incorrectly.

Anybody know of a solution to this problem?

Thank you.

Comments

Sign In or Register to comment.