Modify

#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)

extensions.ini (367 bytes ) - added by anonymous on Nov 26, 2015 at 2:16:39 PM.

Download all attachments as: .zip

Change History (7)

comment:1 by mLipok, on Nov 19, 2015 at 11:30:18 AM

Please attach any INI file with this issue.

comment:2 by Jpm, on Nov 19, 2015 at 4:02:18 PM

Please add a repro script/ Os Version as suggested by Track report submission

comment:3 by BrewManNH, on Nov 19, 2015 at 5:40:57 PM

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 guinness, on Nov 19, 2015 at 7:30:06 PM

Resolution: No Bug
Status: newclosed

This is not a bug. Search the Forum please.

by anonymous, on Nov 26, 2015 at 2:16:39 PM

Attachment: extensions.ini added

comment:5 by anonymous, on Nov 26, 2015 at 2:25:37 PM

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 anonymous, on Nov 26, 2015 at 7:14:04 PM

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.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.