Modify

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#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 10 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 by mLipok, 10 years ago

Please attach any INI file with this issue.

comment:2 by J-Paul Mesnage, 10 years ago

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

comment:3 by BrewManNH, 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 guinness, 10 years ago

Resolution: No Bug
Status: newclosed

This is not a bug. Search the Forum please.

by anonymous, 10 years ago

Attachment: extensions.ini added

comment:5 by anonymous, 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 anonymous, 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.

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.