i'm trying to convert a utf-8 string to utf-16
but to_unicode can't work as well, and it just stop on a character that has 00 in it
for example, if i want to convert "text" to utf-16 with to_unicode, output is "t" and rest of line will not show, even in MEMORY_FILE
i uploaded a zip file, put quickbms.exe in folder and click on to_unicode.bat, and it will generate a unicoded_text file, and must be a utf-16 string!
i wrote this text in file.text as a utf-8 zero terminated string: テスト123
and it will stop on 1
i guess quickbms stop reading in 00 byte in to_unicode
did i something wrong?
Quick BMS unicode problem
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: Quick BMS unicode problem
Code: Select all
get VAR string
set VAR to_unicode VAR
strlen VARSZ VAR 1
print "%VARSZ%: %VAR|hexump VARSZ%"