How do I translate correctly from JSON?

0 favourites
  • 3 posts
From the Asset Store
Implement multi-language translation inside your game effortlessly with the language.translate plugin!
  • Hi everyone,

    I'm using .json files to provide translations to my game.

    Using the AJax: On Completed, and Load from JSON string AJAX.LastData.

    Anyways, everything is working fine, the only issue I have is with the characters.

    The english appears fine, but in Spanish with the letters "ñ, á,é" etc... doesn't appear the char, instead appear a rectangle.

    I understand that this can be due to the codification (uft8) however, I don't have any idea how to change this in the json.

    Any idea?

    Thanks in advance

  • Are you using the standard textobject?

    If so, does the font you are using in the text object have those characters?

    Could changing to the spritefont-object help?

    There's also things like:

    online utf8 to ascii translator

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi,

    Thanks for the help.

    Yes the font have those characters.

    I have been researching and I think the problem is the dictionary (I use the dictionary with Json).

    However, the link you provided is very useful for this situation!!

    That will work a lot if I cannot find other solution!

    Thanks for your help! (and link )

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)