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

Find quick help here to get you started with Hollywood
Post Reply
sinisrus
Posts: 347
Joined: Tue Apr 21, 2015 5:43 pm

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

Post 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)
User avatar
jPV
Posts: 603
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

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

Post 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))
sinisrus
Posts: 347
Joined: Tue Apr 21, 2015 5:43 pm

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

Post by sinisrus »

I test this Thank you
Post Reply