Solved

UTF-8 encoding for sub and superscript. Are those supported on UTF-8?

Posted on 2014-09-15
4
197 Views
Last Modified: 2014-10-01
Hi;

I have some content sub and superscript that i should put in my xml. Are those supported on UTF-8?

Regards.
0
Comment
Question by:jazzIIIlove
  • 3
4 Comments
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 40324761
All unicode charcters can be expressed in a UTF-8 encoding in XML
in that sense UTF-8 is a "complete" encoding for XML
unicode table is here:
http://unicode-table.com/en/
If your editor does not support entering UTF-8 straight from the keyboard, you can always use numeric character entities
eg. for unicode codepoint 178 (superscript 2) use
²

Open in new window

If you do it that way, your character is also safe for encodings that don't support the full unicode
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 40324763
Where the other characters are in the unicode standard can be found here

http://en.wikipedia.org/wiki/Unicode_subscripts_and_superscripts
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 40325295
Hi;

Thanks for the reply. I checked codepoint 178 in the link, but it was another character. can you attach a screenshot by circling it?

My question also involves superscript of, say, letter k. Is that one there too?

Regards.
0
 
LVL 60

Accepted Solution

by:
Geert Bormans earned 500 total points
ID: 40325351
note that there are two ways of expressing numeric character entities
numeric decimal
²

Open in new window

or numeric hexadecimal
²

Open in new window

(note the X after the # for the hex number)
both are the same character only expressed differently
please try to add the 178  numeric entity in a html and check in the browser, you will see I am right, that definitely is superscript 2

Your question did not mention "k" etc. But if you look at the table, you will find at least teh subscripts expressed... hint: you can search the table through the search box using the word "subscript" by example
the subscript "k" is
 ₖ

Open in new window

but that is an more obscure font... in order to visualize it you will need a font with full support of unicode
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question