HexSel plugin
- Author
- Message
-
Offline
- Site Admin
- Posts: 6311
- Joined: Thu Jul 06, 2006 7:20 am
-
Offline
- Site Admin
- Posts: 6311
- Joined: Thu Jul 06, 2006 7:20 am
-
Offline
- Posts: 119
- Joined: Sat Jan 12, 2008 10:16 am
- Location: Shantou, China
Bad Value Bug
there is a bug when do with double_byte character, as for Chinese Simplified character.
for example, a 4 character Chinese_Simplified string in ANSI:
简体中文
The HEX value in WinHEX:
BCF2CCE5D6D0CEC4
The HEX value in Akelpad Via HEXSel:
BCF2CCE5
The bug only happen in ANSI HEX, the UTF-16 BE HEX is OK.
for example, a 4 character Chinese_Simplified string in ANSI:
简体中文
The HEX value in WinHEX:
BCF2CCE5D6D0CEC4
The HEX value in Akelpad Via HEXSel:
BCF2CCE5
The bug only happen in ANSI HEX, the UTF-16 BE HEX is OK.
-
Offline
- Site Admin
- Posts: 6311
- Joined: Thu Jul 06, 2006 7:20 am
-
Offline
- Posts: 119
- Joined: Sat Jan 12, 2008 10:16 am
- Location: Shantou, China
UTF-8???
The same string in a UTF-8 file, and its HEX value is:
E7AE80E4BD93E4B8ADE69687
But there is still ANSI value in Akelpad.
How can I get the right value in the mode according to the codepage Akelpad detect the file?
E7AE80E4BD93E4B8ADE69687
But there is still ANSI value in Akelpad.
How can I get the right value in the mode according to the codepage Akelpad detect the file?
-
Offline
- Site Admin
- Posts: 6311
- Joined: Thu Jul 06, 2006 7:20 am
-
Offline
- Posts: 5
- Joined: Thu Apr 24, 2008 10:45 am
-
Offline
- Posts: 1250
- Joined: Thu Nov 16, 2006 11:53 am
- Location: Kyiv, Ukraine
-
Offline
- Posts: 119
- Joined: Sat Jan 12, 2008 10:16 am
- Location: Shantou, China
How about:Instructor wrote: Plugin doesn't know what codepage file has, it only knows that selection in AkelPad window is in UTF16-LE (AkelPad always work with UTF16-LE). After plugin gets selection text in UTF16-LE, it converts it to default ANSI codepage.
add a new API named CurrentCodepage for called by plugs, then the plug can convert the unicode-le value into CurrentCodepage value.
-
Offline
- Site Admin
- Posts: 6311
- Joined: Thu Jul 06, 2006 7:20 am
-
Offline
- Site Admin
- Posts: 6311
- Joined: Thu Jul 06, 2006 7:20 am
Changed: AkelPad 3.6.0 required.
Changed: while reconversion to multibyte string, active file codepage is used.
HexSel plugin v2.8
Changed: while reconversion to multibyte string, active file codepage is used.
HexSel plugin v2.8
-
Offline
- Site Admin
- Posts: 6311
- Joined: Thu Jul 06, 2006 7:20 am
-
Offline
- Site Admin
- Posts: 6311
- Joined: Thu Jul 06, 2006 7:20 am