How do I properly read text files using AJAX (�)

Get help using Construct 2

Post » Wed May 24, 2017 2:52 am

I'm using AJAX to read some text files but some characters aren't loaded correctly therefore showing this �. It happens with characters like ª, or º and also with all non english characters like ç, é, ã, etc. Is there a way to fix it?

Thanks. :)
B
56
S
21
G
3
Posts: 602
Reputation: 6,612

Post » Wed May 24, 2017 7:29 am

I believe it has to do with how you store the text file.

Try saving it as unicode or utf-8 instead of ansi.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572

Post » Wed May 24, 2017 8:39 pm

@lennaert Thanks! That's exactly it. :)
B
56
S
21
G
3
Posts: 602
Reputation: 6,612


Return to How do I....?

Who is online

Users browsing this forum: ASHKAR, brunopalermo, ItsAstro and 31 guests