Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[BUG--Solved]about "ansiToUtf8()" in CE6.5.1

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
BenBo
Newbie cheater
Reputation: 0

Joined: 03 Sep 2015
Posts: 13

PostPosted: Sat May 21, 2016 3:43 pm    Post subject: [BUG--Solved]about "ansiToUtf8()" in CE6.5.1 Reply with quote

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
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sat May 21, 2016 4:32 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Sat May 21, 2016 5:22 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
BenBo
Newbie cheater
Reputation: 0

Joined: 03 Sep 2015
Posts: 13

PostPosted: Sun May 22, 2016 12:17 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites