- Home /
Textasset with accent (ć,ź etc.) characters won't display on Android
Textasset reads from .txt file encoded in UTF-8. When I play game on unity all the characters are displayed correctly but when I push it to android There are no accent characters (It just ignores them). I opened the .apk and found the actual file with my text in it and noticed that the file is encoded in ANSI. So how to force unity to attach textasset in UTF 8 so android can read accent characters?
At the very end he says this:
"O$$anonymous$$ I tried to save again with Notepad++ and this time it works--- In the encoding Tab I needed to CONVERT to UTF-8 not just use UTF-Encoding and Save
anyhow, problem solved..
Dennis"
So perhaps open it up in Notepad++, CONVERT to UTF-8, save.
Unfortunately this method didnt work for me. Also strings displayed directly from script without using file to read from has the same problem. I tried converting scripts to utf-8 too. Non of the method worked
Answer by Watorski · Sep 15, 2017 at 09:27 PM
Late replay, but: If you're using notepad to create .txt files make sure you selected UTF-8 encoding in the box close left to the "Save" button. It worked for me :)
PS. It works for every unity project, not only for android