#3170 closed Bug (No Bug)
IniRead() functions returns ANSI chars instead of Unicode Chars
| Reported by: | Factfinder | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.3.14.2 | Severity: | None |
| Keywords: | Cc: |
Description
IniRead() function works good for ANSI strings but returns ANSI chars instead of Unicode Chars if the data string contains Unicode chars.
Attachments (1)
Change History (7)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Please add a repro script/ Os Version as suggested by Track report submission
comment:3 by , 10 years ago
INI files by design are not Unicode compatible. There are workarounds to get them to be able to utilize Unicode characters, but it's non-standard to use them with Unicode characters.
They are from the ancient days of Windows 3, maybe even Windows 1, and up, you should be using XML files, the registry, or some other functionality for Unicode compatibility.
Read more here.
http://blogs.msdn.com/b/oldnewthing/archive/2007/11/26/6523907.aspx
comment:4 by , 10 years ago
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
This is not a bug. Search the Forum please.
by , 10 years ago
| Attachment: | extensions.ini added |
|---|
comment:5 by , 10 years ago
I'm not creating an ini file. I try to read an existed ini. Firefox is using an extensions.ini file that contains a list of add-ons. The add-ons are placed in the user home path and in some cases the user name (like in East Europian names) contains Unicode chars. Example of the content of extensions.ini:
[ExtensionDirs]
Extension0=C:\Documents and Settings\Właściciel\Dane aplikacji\Mozilla\Firefox\Profiles\1th1xarp.default-1438872568250\extensions\translator@zoli.bod.xpi
[ThemeDirs]
Extension0=C:\Program Files\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}
[MultiprocessIncompatibleExtensions]
Extension0=translator@zoli.bod
The file is attached too.
comment:6 by , 10 years ago
Having said that I don't need the function and have found a workaround and don't use the function any more. I thought I would report it for the record. Should the developers find it not needed to adjust the function, they may just leave this ticket where it is now.

Please attach any INI file with this issue.