Scientific Symbols Such as Degree and Squared in XML

A

Ayron

Is it possible to have scientific symbols (e.g. degree, squared, cubed,
etc.) in XML docs if the UTF-8 encoding is specified? Is there a
limitation?

Thanks.

-ak
 
A

Andreas Prilop

Is it possible to have scientific symbols (e.g. degree, squared, cubed,
etc.) in XML docs if the UTF-8 encoding is specified?
Yes.

Is there a limitation?

Symbols of profanity are not allowed in the United States.
 
J

Jukka K. Korpela

Ayron said:
Is it possible to have scientific symbols (e.g. degree, squared, cubed,
etc.) in XML docs if the UTF-8 encoding is specified?

Certainly. UTF-8 is capable of representing all characters defined in Unicode
(and, actually, more - you could use Private Use codepoints for your own
characters, though you most probably don't need that).

In addition, you can use character references, irrespectively of the
encoding. Such as ° or (equivalently) for the degree sign.
You don't normally need them, if you can use a UTF-8 capable editor or
another program that can generate UTF-8 encoded XML documents for you.
 
J

Johannes Koch

Jukka said:
In addition, you can use character references, irrespectively of the
encoding. Such as ° or (equivalently) for the degree sign.

The hex number must be prefixed by 'x': °
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top