How do I translate correctly from JSON?

Get help using Construct 2

Post » Fri Jul 18, 2014 5:23 pm

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
Image
Image
B
26
S
2
G
1
Posts: 71
Reputation: 2,662

Post » Fri Jul 18, 2014 5:51 pm

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
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Jul 18, 2014 5:56 pm

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 )
:D
Image
Image
B
26
S
2
G
1
Posts: 71
Reputation: 2,662


Return to How do I....?

Who is online

Users browsing this forum: Anonnymitet, bclikesyou, ST314 and 19 guests