How do I fix special characters when using AJAX?

Get help using Construct 2

Post » Tue Nov 11, 2014 7:48 pm

I have problem with special characters (scandinavian alphabets) when I load them from file using AJAX/JSON.
Those special characters are displayed as '?' as you can see in links below. Could somebody help to fix this issue or is this bug?
File which I request using AJAX is placed under Files project folder and it looks like this:
Code: Select all
{"c2array":true,
"size":[3,2,1],
"data":[

[["äöåäöåöäö123"],["hönö"]],
[["troloo"],["hönö"]],
[["dingdingdong"],["hönö"]]]}

Code: http://1drv.ms/1ujzEcg
Problem in UI: http://1drv.ms/1ujzRw5
Capx attached as well.
You do not have the required permissions to view the files attached to this post.
B
6
S
2
Posts: 6
Reputation: 608

Post » Tue Nov 11, 2014 7:52 pm

Save you text file using Unicode, it should work afterward.
B
74
S
31
G
26
Posts: 994
Reputation: 20,198

Post » Tue Nov 11, 2014 8:01 pm

Thanks.. that fixed the problem and I feel quite stupid now.
B
6
S
2
Posts: 6
Reputation: 608

Post » Tue Nov 11, 2014 8:39 pm

That's a common error, don't be ashamed about it ! ;)
B
74
S
31
G
26
Posts: 994
Reputation: 20,198


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests