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

Posted on 2014-09-15
Last Modified: 2014-10-01

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

Question by:jazzIIIlove
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
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:
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
LVL 60

Expert Comment

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

Author Comment

ID: 40325295

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?

LVL 60

Accepted Solution

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

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
You may have a outside contractor who comes in once a week or seasonal to do some work in your office but you only want to give him access to the programs and files he needs and keep privet all other documents and programs, can you do this on a loca…
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…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

717 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