Hello.
When I'm previewing my layout, the text is showing wrong.
It shows wrong signs for the letters: ?, ? and ?.
The text is located in project/files/questions.txt
as questions for a trivia game.
What shall I do? Can somebody please help.
Are you using the text object or sprite font object? If the text object, what font are you using?
I am using the text object. The font is Arial.
This is working for me: .capx.
Thanks a lot for your answer.
I am working on a trivia game using the template found here:
scirra.com/forum/making-a-quiz-game_topic50656_page2&SID=9ez751d4-1c68-956da1b2-41461-8838425926.html
I still have the problem, when I put in "? ? and ?" in the text file (Questions.txt) and loads the text through AJAX.
Best regards
/MHv
Develop games in your browser. Powerful, performant & highly capable.
File a bug report if you're having problems with what should work normally. Just make a CAPX showing it works normally (text object) and that when loading from AJAX, strings display properly except those characters.
Well, before reporting a bug make sure if there isn't an issue with the txt file, it's maybe its encoding that is wrong.
Maybe try to save the .txt to UTF or something like unicode to see if the issue does not come from there.
Ashley would you have an idea about this ?
Construct 2 fully supports unicode. You're probably saving the .txt file with the wrong encoding. Make sure you save it with UTF-8. If you save it as ASCII, non-english characters will appear as the wrong characters, which explains the issue.
Problem fixed. Thanks a lot guys!
The text file was saved with the wrong encoding.