Re: How to read UTF-8 .ini files

"valery_vi" <[email protected]>
Newsgroups gmane.comp.windows.autoit.user
Message-ID <[email protected]>
Hi,

MsCreator from AutoItScript wrote:
"
Hi,
In new versions of AutoIt there support for Unicode, so you will need 
to save your Ini-file to Utf-8 encoding, and when you read it, the 
line will be as Utf-8, and use AutoIt3.exe to compile the script 
(this what i think SciTE uses by default), then you see right (as you 
want) characters (i think, hope  ). 
"

There is useful answer about difference between UTF-8 and UNICODE 
"UTF-8 vs UNICODE - Could someone explain?"
http://lists.wxwidgets.org/archive/wx-dev/msg14611.html

Script ADot has an example how to work with UTF-8 character in 
AutoIt. 

So, function CharToUTF8 is to convert Windows-1251 character into UTF-
8:

;====================
;1251->UTF-8 (partially!)
func CharToUTF8($ch)
...
endfunc

ADot is in Files/Misc/ folder of this group.

Valery
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.