About Store Forum Documentation Contact



Post Reply 
TextData save to file problem
Author Message
Pherael Offline
Member

Post: #1
TextData save to file problem
Hi, when I try save textes using TextData from game to file (so I can send them to translation) its looks like this:

Code:
rndDescF9=<+8){!p0c$!8P6]!D0c$!l0c$!x*/}!k;Q]!z1i}!h(y]!mUf]!gwl{!d|H]!q0c$!r8){!k=9}!zNM{!i|H]!zNM{!q0c$!r8){!p0c$!n*/}!l2Z]!P]A%!D{0}!c|H]!p}H]!g@p]!z1i}!x=9}!m*/}!P]A%!HcA}!kwl{!w0c$!q7r}!iID{!E1i}!cwl{!ApS}!,;9}!C*/}!y0c$!z1i}!E0c$!yOM{!mUf]!p0c$!l0c$!x*/}!mID{!7|H]!n!!>

rndDescF9a=`She has a profound belief that one of the frogs, she encounters, will eventually turn out to be a prince.`

rndDescF9a and rndDescF9 textes looks exactly the same in game and engine, but when I export them, one is normal, other is in weird format. As you can guess, such texts can't be translated, and there is no visually information why this is happening (texts looks normal to me). It's only happens to few percentage to textes. Is any easy way to fix this?
03-27-2019 02:54 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: TextData save to file problem
Please check here:
https://github.com/Esenthel/EsenthelEngi...l.cpp#L254
You must have some special character that triggers binary mode. Can you check which character is it?
03-28-2019 04:00 AM
Find all posts by this user Quote this message in a reply
Pherael Offline
Member

Post: #3
RE: TextData save to file problem
After some work, I was able to find character - it was this little fella http://www.fileformat.info/info/unicode/.../index.htm

Edit: also this two characters – and ’
http://www.fileformat.info/info/unicode/.../index.htm
https://www.fileformat.info/info/unicode.../index.htm

Anyway, I was able to replace these characters and export text file succesfully for edition.
(This post was last modified: 03-28-2019 01:00 PM by Pherael.)
03-28-2019 10:14 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: TextData save to file problem
Thank you, I've improved the source code on GitHub to avoid binary mode for these and similar cases.
04-01-2019 05:46 AM
Find all posts by this user Quote this message in a reply
Post Reply