Page 1 of 1

save sting with accent (éèàç) in file

Posted: Sat Sep 09, 2017 12:29 am
by sinisrus
Hello,

I have probleme if i save string with accent a have this => Sting var "Séléction" in file => séléction

I use this code :

Code: Select all

        OpenFile(1, "ram:test", #MODE_WRITE)
        WriteLine(1,"séléction")
        CloseFile(1)

Re: save sting with accent (éèàç) in file

Posted: Sat Sep 09, 2017 9:42 am
by jPV
Hollywood uses UTF-8 encoding by default now, what you get is UTF-8 output...

If you want to use traditional encodings, you can, for example, convert the strings to other encoding.

For example: WriteLine(1,ConvertStr("séléction",#ENCODING_UTF8,#ENCODING_ISO8859_1))

Re: save sting with accent (éèàç) in file

Posted: Sat Sep 09, 2017 4:31 pm
by sinisrus
I test this Thank you