Vincent Snijders,
You know, charactermapdlg.pas-5.zip can not work very well (see bug report note id #0029399 and screen shot charactermapdlg.pas-5.PNG).
For charactermapdlg.pas-5,
when I move my mouse on #$80..#$FE,
it shows incorrect Decimal and Hex number!
ASCII Dec Hex UTF-8 Display as (see the screen shot)
129 63 3F C281 square
130 63 3F C282 square
131 63 3F C283 square
... ... ... ... ...
159 63 3F C29F quuare
160 63 3F C2A0 space
161 63 3F C2A1 letter i
162 51 33 C2A2 letter c with a line
163 52 34 C2A3 letter L with a line
164 161 A1 C2A4 small square
165 54 36 C2A5 letter Y with two lines
166 63 3F C2A6 spilliter
167 161 A1 C2A7 two letter S's
168 161 A1 C2A8 two dots
169 63 3F C2A9 letter C with circle
170 63 3F C2AA small number 2
171 63 3F C2AB two "less than" characters
... ... ... ... ...
Snapshot hereYou said in the bug note:
I committed the last patch. Thanks.
I don't know what patch did you use,
Maybe use charactermapdlg-4.zip is better.
charactermapdlg.pas.diff.fixcrash.zip does not work, too.
Re: theo
CharOrd := Ord(UTF8ToAnsi(StringGrid1.Cells[Col, Row])[1]);
Character #128..#255 need 2 bytes in UTF-8.
We need to convert UTF-8 to Unicode, then convert to ANSI,
or Col*16+Row-17.
Please test it by yourself, is it OK?
So, if you think, these patches are all not perfect, please tell us, let us write a new patch.
In my opinion, use Patch 4 is great.