How do I force AJAX to copy text from file in right format?

Get help using Construct 2

Post » Wed Mar 21, 2018 5:55 pm

Hello, i am using AJAX to load text form .txt file into variable. It works well, but the problem is with polish signs like "ł, ą, ć" which are transformed into replacement charactes �. How can i prevent this happening?

I was thinking about Overrideing MIME type with f.e. "text/plain; charset=utf-8", but this does not help.
B
3
Posts: 3
Reputation: 181

Post » Thu Mar 22, 2018 1:09 am

You need to save your txt file in UTF-8
Try opening it in Notepad, save in UTF-8 and then re-import to your project.
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
17
S
9
G
156
Posts: 2,204
Reputation: 82,989


Return to How do I....?

Who is online

Users browsing this forum: Asmodean, fbarraza28, Google [Bot], JoniArtha and 5 guests