ssamko Posted January 8, 2016 Posted January 8, 2016 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????KWhat shoud I do ?
KaFu Posted January 8, 2016 Posted January 8, 2016 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) OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2025-May-18) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
ssamko Posted January 9, 2016 Author Posted January 9, 2016 man Thank you so much !there was problem with that type of encoding. And this (2+32) works great !
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now