Sign in to follow this  
ahuimanu

Unicode?

Recommended Posts

Hi,I did a search and found little. I wonder if I can use Unicode encodings or escapes within an XML tags?my attempts with U+2103 and 0x2103 have not met with success. I also tried the HTML escape sequence: ℃This is my first dive into XML gauge programming and I am starting off by teaching myself how to make an OAT gauge.What I am looking to do is show the unicode symbol for "Degrees Celcius."I realize I could probably call a C library to do this, but my challenge is to learn XML gauge programming and I'm looking to do it with an XML String (which I'm getting the hang of). Thanks,J-

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hi,Try:%((A:Total air temperature,celsius))%!+5d! °CJan"Beatus ille qui procul negotiis..."

Share this post


Link to post
Share on other sites

Hi Jan,Thanks, but how did you get that degree symbol to appear? As the XML file is just plain text, surely you had to do something special to make U+2103 appear? That is what my code looks like, but I only have "C" in there.The (hex) unicode value 2103 actually shows the symbol and C together.Thanks,J-

Share this post


Link to post
Share on other sites

I use %((A:Total air temperature,celsius))%!+5d!

Share this post


Link to post
Share on other sites

>>I use %((A:Total air temperature,celsius))%!+5d!

Share this post


Link to post
Share on other sites

Hi Bill,Thanks, I "re-edumacated" myself on the whole Alt + thing for accessing Unicode here: http://www.fileformat.info/I gotta remember that these are usually expressed as hex (without the "+" will accept the entry of decimal/base-10).Visual Studio took it just fine.J-

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this