ssamko

Input-problem

3 posts in this topic

Hello !

I have a problem with getting a name with special chars from ini....ini is in utf-8 and it contains this: name=ÐØΜІиІĶ

but When my input show itself....it load only this:  ?O????K

What shoud I do ?

Share this post


Link to post
Share on other sites



FileDelete(@ScriptDir & "\test.ini")
IniWrite(@ScriptDir & "\test.ini","test","test","ÐØΜІиІĶ")
MsgBox(0,"",IniRead(@ScriptDir & "\test.ini","test","test",""))

FileDelete(@ScriptDir & "\test.ini")

$h_file = FileOpen(@ScriptDir & "\test.ini", 2 + 32) ; 32 = Use Unicode UTF16 Little Endian reading and writing mode.
FileWrite($h_file, "[test]" & @CRLF) ; you need to write something
FileClose($h_file)

IniWrite(@ScriptDir & "\test.ini","test","test","ÐØΜІиІĶ")
MsgBox(0,"",IniRead(@ScriptDir & "\test.ini","test","test",""))

GUICreate("Test")
GUICtrlCreateInput(IniRead(@ScriptDir & "\test.ini","test","test",""),10,10,200)
GUISetState()
MsgBox(0,"",1)

 

Share this post


Link to post
Share on other sites

man Thank you so much !

there was problem with that type of encoding. And this (2+32) works great !

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now