UTF8 symbols for subscript letters

Don Code picture Don Code · Jul 7, 2011 · Viewed 23.1k times · Source

I have been looking online for the UTF8 character table. And all I could find for subscripts were numbers 1 to 9 and some of latin letters.

I need to find S and B as subscripts for UTF8

Thanks for the help.

here is the link for a UTF8 character table: http://tlt.its.psu.edu/suggestions/international/bylanguage/mathchart.html

Answer

Rom picture Rom · Jul 7, 2011

UNICODE doesn't have representation of all latin letters in subscripts and superscripts: just a few of those. You'll have to use markup to do that.

For example, if you're using HTML, you can use the following markup:

example<sub>S</sub>

which gets converted into exampleS.

Same functionality is available in many other text rendering engines: TeX, etc. If you're displaying it in WinForms or something similar, unfortunately, you'll have to do it yourself.

Also, regarding the "UTF8". It's just an encoding of the UNICODE table. UTF8 can encode any UNICODE character, as does UTF16, UTF32 and others. Therefore, your question is really about existence of latin subscript characters in UNICODE.