Opened 11 years ago

Closed 11 years ago

#2337 closed Bug (Fixed)

Au3Record: Unicode and endianness

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



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,

Attachments (1)

jb5.au3 (1.7 KB) - added by anonymous 11 years ago.

Download all attachments as: .zip

Change History (8)

Changed 11 years ago by anonymous

comment:1 Changed 11 years ago by jchd18

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

comment:2 Changed 11 years ago by Jpm

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

comment:3 Changed 11 years ago by Jpm

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 Changed 11 years ago by jchd18

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 Changed 11 years ago by Jpm

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

comment:6 Changed 11 years ago by Jpm

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 Changed 11 years ago by Jpm

  • Milestone set to
  • Owner set to Jpm
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [7706] in version:

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The owner will remain Jpm.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.