Filein DAT : Unicode to utf8 ? [Solved]

Hi,

When I open a txt file with a filein DAT all special characters like "é à è ç ô î … " are transformed.

I guess this need to encode from unicode to utf 8?
I saw that page : [url]http://www.derivative.ca/wiki088/index.php?title=Unicode[/url] and was wondering how to import directly in the good format?

I tried to put
open(‘C:/Users/Cosmo/Desktop/messages.txt’, encoding=‘utf8’)
in the file parameter but that create an error.

Does someone has already solved this?

I found my issue : the matter come from the original text file where sentences wasn’t in good format!

So Filein DAT doesn’t need to translate from one format (unicode, utf8, ANSI …) to another !

:wink: