When reading a character in memory, the Korean string is not output normally.
msgbox % calc.readstring(0x2af1a10,0,"utf-8")
0x2af1a10 When this address is read, "abcdefghuikl = 한글테스트" should be output.
However, classmemory output the Korean string as abcdefghuikl = ??????????
What can I do to resolve this?
classmemory readstring encoding error
-
- Posts: 147
- Joined: 05 Nov 2016, 22:42
Re: classmemory readstring encoding error
Which file encoding are you using for your AHK script file? https://autohotkey.com/docs/FAQ.htm#nonascii
-
- Posts: 147
- Joined: 05 Nov 2016, 22:42
Re: classmemory readstring encoding error
Thank you, but I am asking for encoding errors in classmemory onlygregster wrote:Which file encoding are you using for your AHK script file? https://autohotkey.com/docs/FAQ.htm#nonascii
Re: classmemory readstring encoding error
I do not know what this is, but maybe try msgbox % calc.readstring(0x2af1a10,0,"utf-16")msgbox % calc.readstring(0x2af1a10,0,"utf-8")
Cheers.
-
- Posts: 147
- Joined: 05 Nov 2016, 22:42
Re: classmemory readstring encoding error
If the memory address is Unicode, it will be output normally, but unfortunately it is ASCII code.Helgef wrote:I do not know what this is, but maybe try msgbox % calc.readstring(0x2af1a10,0,"utf-16")msgbox % calc.readstring(0x2af1a10,0,"utf-8")
Cheers.
Re: classmemory readstring encoding error
Do you run your script with Unicode or ANSI build?
If you can provide a script which reproduces your problem you are more likely to receive help.
Cheers.
If you can provide a script which reproduces your problem you are more likely to receive help.
Cheers.
-
- Posts: 147
- Joined: 05 Nov 2016, 22:42
Re: classmemory readstring encoding error
This is not difficult.Helgef wrote:Do you run your script with Unicode or ANSI build?
If you can provide a script which reproduces your problem you are more likely to receive help.
Cheers.
Code: Select all
calc := new _ClassMemory("ahk_exe program.exe", "", hProcessCopy)
msgbox % calc.readstring(address,0)
You can test any program. If you enter a Korea string at an empty memory address using a cheat engine and read the memory address using the classmemory, you can confirm that korea string is not normally recognized.
Who is online
Users browsing this forum: Ineedhelplz, penguinautomator, Spawnova and 298 guests