Modify

Opened 13 years ago

Closed 13 years ago

#2337 closed Bug (Fixed)

Au3Record: Unicode and endianness

Reported by: jbaron@… Owned by: J-Paul Mesnage
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 13 years ago.

Download all attachments as: .zip

Change History (8)

by anonymous, 13 years ago

Attachment: jb5.au3 added

comment:1 by jchd18, 13 years ago

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

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

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

comment:3 by J-Paul Mesnage, 13 years ago

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, 13 years ago

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 J-Paul Mesnage, 13 years ago

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

comment:6 by J-Paul Mesnage, 13 years ago

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 J-Paul Mesnage, 13 years ago

Milestone: 3.3.9.5
Owner: set to J-Paul Mesnage
Resolution: Fixed
Status: newclosed

Fixed by revision [7706] in version: 3.3.9.5

Modify Ticket

Action
as closed The owner will remain J-Paul Mesnage.

Add Comment


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