Modify

#2337 closed Bug (Fixed)

Au3Record: Unicode and endianness

Reported by: jbaron@… Owned by: Jpm
Milestone: 3.3.9.5 Component: Other
Version: 3.3.8.1 Severity: None
Keywords: Au3Record unicode Cc:

Description

Hi,

When recording a script with Au3Record on a French keyboard, the saved file starts with the BOM 0xFFFE indicating a "Little Endian Unicode" sequence. Thus, most of the regular characters are actually in Little Endian order (eg "AU3" -> 41 00 55 00 33 00) but not all them; for example, the "equal" (=) character is encoded 3D 00 and when I open the file with an editor such as notepad I get the Chinese symbol 㴀 corresponding to the unicode character U+3D00. And it's the same with comma, colon, exclamation mark, accented characters and more.
Have you ever encountered such a problem?
A big Congratulations anyway for your work,
Jacques

Attachments (1)

jb5.au3 (1.7 KB ) - added by anonymous on Apr 24, 2013 at 2:30:08 PM.

Download all attachments as: .zip

Change History (8)

by anonymous, on Apr 24, 2013 at 2:30:08 PM

Attachment: jb5.au3 added

comment:1 by jchd18, on Apr 26, 2013 at 10:24:27 AM

Confirmed: for instance '=' gets indeed encoded as UTF16-BE in an otherwise UTF16-LE result file.

comment:2 by Jpm, on May 1, 2013 at 7:29:58 AM

There is much more when running Under Windows 8 64-bit fr keyboard

comment:3 by Jpm, on May 1, 2013 at 4:05:18 PM

In fact the current dll does not seems to support non English keyboard ...
could be difficult to fix as the source of the .dll is not available

comment:4 by jchd18, on May 1, 2013 at 6:17:07 PM

Are you sure J-P?

I don't know which dll you're refering to as it comes to intercepting keystrokes but I know for sure from own experience that the same function can be carried over by other means and over the whole French keyboard composed character range. Then saving and Send()-ing the captured data as Unicode is straightforward.

I'm not going to discuss this further publickly. Use MP to jchd or email where you know.

comment:5 by Jpm, on May 2, 2013 at 6:34:22 AM

the dll is ASWhook.dll send by Larry
I know that can be fix

comment:6 by Jpm, on May 5, 2013 at 11:42:30 AM

In fact The recording can work only Under the same keyboard.
Definetly the present implementation just work with English keyboard.
I am on the way to fix it for any(?) keyboard at least the french one will work.

comment:7 by Jpm, on May 5, 2013 at 6:33:27 PM

Milestone: 3.3.9.5
Owner: set to Jpm
Resolution: Fixed
Status: newclosed

Fixed by revision [7706] in version: 3.3.9.5

Modify Ticket

Action
as closed The owner will remain Jpm.

Add Comment


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