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

Find quick help here to get you started with Hollywood

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

Postby sinisrus » Sat Sep 09, 2017 12:29 am

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

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

Postby jPV » Sat Sep 09, 2017 9:42 am

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

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

Postby sinisrus » Sat Sep 09, 2017 4:31 pm

I test this Thank you
sinisrus
 
Posts: 201
Joined: Tue Apr 21, 2015 5:43 pm


Return to Newbie questions

Who is online

Users browsing this forum: No registered users and 2 guests