View previous topic :: View next topic |
Author |
Message |
BenBo Newbie cheater Reputation: 0
Joined: 03 Sep 2015 Posts: 13
|
Posted: Sat May 21, 2016 3:43 pm Post subject: [BUG--Solved]about "ansiToUtf8()" in CE6.5.1 |
|
|
I'm glad finding "sendMessage()" in main.lua
at the same time , found that "ansiToUtf8()" work wrong. e.g.:
char"完" with ansi-code "0xCDEA" can't convert to the correct utf8-code by ansiToUtf8().
maybe, "utf8ToAnsi()" has bug too.
---------------------------
solve[20160523]:
see http-wiki.freepascal.org/Better_Unicode_Support_in_Lazarus
Better Unicode Support in Lazarus:
contents.3--Usage in Lazarus--say that "The new mode is enabled automatically when compiling with FPC 3.0+. It can be disabled by defining -dDisableUTF8RTL" , so, I set objectOption with custem-option before compiling CE source.
Last edited by BenBo on Mon May 23, 2016 12:49 am; edited 1 time in total |
|
Back to top |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Sat May 21, 2016 4:32 pm Post subject: |
|
|
Could you try newest Lazarus and this function.
If Lazarus doesn't handle it too, DB will be forced to do some workarounds.
_________________
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Sat May 21, 2016 5:22 pm Post subject: |
|
|
this is a lazarus/fpc thing.
but perhaps you use it wrong? The lua engine window has it's input as utf8, so no need to convert
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
BenBo Newbie cheater Reputation: 0
Joined: 03 Sep 2015 Posts: 13
|
Posted: Sun May 22, 2016 12:17 am Post subject: |
|
|
Dark Byte wrote: | this is a lazarus/fpc thing.
but perhaps you use it wrong? The lua engine window has it's input as utf8, so no need to convert |
i readBytes about ansi-code from mem.
find this problem when converting code to show string in lua engine.
|
|
Back to top |
|
|
|