Reading accents within a text file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi I have a trivial question for the experts.

I would lilke to read be able to read a text file that could contain french
characters with accents.
I'm opening the file with the File.openText(...) and
then loop through the file with the Readline function into a string variable.
But everytime a hit a char with an accent I loses it.

Example : père reads pre

Thanks in advance

Chérif
 
Hi Chérif, I think your problem comes from reading the file with the
incorrect encoding. Try using other methods that let you pick the
encoding, like StreamReader.
 
Back
Top