Advertisements

Andreas Prilop wrote:
> On 9 Nov 2005, Ayron wrote:
>
>> 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.

"Ayron" <> wrote:
> 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.

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!