Game Development Community

How to get apostrophe to show up in text?

by amaranthia · in Torque Game Builder · 01/14/2007 (8:22 pm) · 2 replies

I've got an odd little problem. My apostrophes are not showing up in my game text when I use GuiMLTextCtrl.

My string: "I'm sorry I said all of those mean things about you to my sister. I didn't mean it... Really!";
The output: I m sorry I said all of those mean things about you to my sister. I didn t mean it... Really!

I've tried using \' but that didn't work. Does anyone know which escape sequence I need to use?

#1
01/15/2007 (2:48 am)
I've just tested it using \' and it works fine.

TestMLText.setText("I\'m sorry I said all of those mean things about you to my sister.\nI didn\'t mean it... Really!");

What's script you are using to set the text?
#2
01/15/2007 (10:24 am)
Nah, that doesn't work for me. I had to do this to get it to work: I\x27m
(I'm using textGui.addText() )