Jump to content

Phaser: Problems with non-English symbols in localization files


Recommended Posts


I have a problem, friends:

I use Phaser text objects in my game: game.add.text(...

My way of implementing game localization is the simplest possible way: I just store strings like var locString_testString = 'test string' in a separate .js files.

When I use English, everything is fine. But when I change 'test string' to something like "ぽ", weird stuff (check the attachment) is displayed.

My files are in UTF-8.

I checked docs, but didn't find anything according to locale/localization.

Maybe some of you faced the same problem? I will appreciate any help!



Link to comment
Share on other sites

I am digging this...

Just noticed a strange behaviour: when I use \u1321 code symbols, sometimes it works: if my localization file contains 死, Phaser fails to display it. If I use something like \u1231, it displays a right letter. 

It seems it's an encoding problem. Hell.

Link to comment
Share on other sites

  • 3 months later...

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...