Hi there everyone,
I am using a TMemo to view the contents of text files whose names and contents contain French accented characters.
Initially, it was impossible for me to load the text files into the TMemo because they had French names but I got round the problem by passing the filename into the UTF8ToAnsi function
TMemo.Lines.LoadFromFile(UTF8ToAnsi(FileName));
Now I can view the contents of the text files but the French words are garbled as shown below:
'Chirurgie'
'Gyn?cologie'
'H?pato-Gastrologie'
'Maternit?'
'M?decine Interne'
I've tried all I can (changing the TMemo character set) but I can't get the French text to display properly.
I would really appreciate your advice.
JD