Japanese Characters unreadable from .txt after AJAX loading

Get help using Construct 2

Post » Mon Jul 04, 2016 7:19 pm

For my project i need Japanese Characters ( for those that dont know Kanji and Hiragana) plus their english equivalent loaded into an array.

I did that before with rexrainbows csv2array plugin but i only raw pasted the data into the dataentry field there, not the most elegant version.

so i tryed the same thing with ajax but at that point the Characters get messed up and unreadable.

then i tried to write the data into the array manually with loops.

still the characters are unreadable.

So my question is now: is there a way to use ajax with japanese characters staying readable?

Thanks in advance for your help, it is greatly apreciated! :3
B
5
Posts: 7
Reputation: 239

Post » Mon Jul 04, 2016 9:16 pm

Make sure the server sends it with a UTF-8 encoding.
Scirra Founder
B
387
S
230
G
87
Posts: 24,248
Reputation: 192,228

Post » Tue Jul 05, 2016 5:43 am

Thank you a bunch. Worked like a charm :3
B
5
Posts: 7
Reputation: 239

Post » Tue Jul 05, 2016 9:38 am

actually i have to correct that <.<

only most characters are shown now, there are still problems with a some of them. cant see any conection between them too. some are shown some are not. do i have to change some settings still?
B
5
Posts: 7
Reputation: 239


Return to How do I....?

Who is online

Users browsing this forum: Lancifer, MadSpy and 7 guests