Hi,
Is there an escape sequence to place special characters in a text field? Like \33?176 to place the degree character (Chr(176)). Thanks.
NathanH
Escape Sequence for Special Characters
Re: Escape Sequence for Special Characters
For latin 1 (iso ). \xxx where the decimal point is
I.e \176. In your case
I.e \176. In your case
Christos
- airsoftsoftwair
- Posts: 5626
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Escape Sequence for Special Characters
I don't see why this should be necessary. MUI Royale supports UTF-8 so you can just use the UTF-8 codepoint for the degree character instead of escape sequences or is there any reason why you can't use UTF-8?
Re: Escape Sequence for Special Characters
Hi,
Yes, I can set it in code after the object is created. I was just wondering whether MUI had the ability to do it at the time of object creation. I guess not. Thanks!
NathanH
Yes, I can set it in code after the object is created. I was just wondering whether MUI had the ability to do it at the time of object creation. I guess not. Thanks!
NathanH
- airsoftsoftwair
- Posts: 5626
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Escape Sequence for Special Characters
You can do it at object creation time. You just need to set the character encoding of the XML file to UTF-8, i.e. something like:
And of course you need to use a text editor capable of saving UTF-8 then. Then these characters should work just fine.
Code: Select all
<?xml version="1.0" encoding="utf-8"?>