Modify

Opened 12 years ago

Closed 12 years ago

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

Download all attachments as: .zip

Change History (8)

Changed 12 years ago by anonymous

comment:1 Changed 12 years ago by jchd18

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

comment:2 Changed 12 years ago by Jpm

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

comment:3 Changed 12 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 12 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 12 years ago by Jpm

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

comment:6 Changed 12 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 12 years ago by Jpm

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

Fixed by revision [7706] in version: 3.3.9.5

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

Action
as closed The owner will remain Jpm.
Author


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

 
Note: See TracTickets for help on using tickets.