Thanks to Michael Czepiel for his technical input.
A codepoint is the numeric position of a character within an encoding system. Or more simply put, it's the number that a computer can translate into a particular character.
In Unicode, code points are given in the form of U+ a four or six hexadecimal (Base 16) number. For example, the codepoint for capital A macron (Ā) is U+0100.
You can read more about the structure of codepoints and hexadecimal numbers in the Encoding Tutorial.
Codepoint lists can be found at Unicode and other locations. Here is a partial list of sites
Below are some steps for finding and inserting a numeric code.
The Unicode Consortium and other sources provide Unicode charts.
Either hexadecimal (base 16) or decimal numbers (Base 10) can be used, but it is important to know which version the source uses. Please note.
The hexadecimal template is
&#x<hex-number>; All codes begin with "&#" and end with a semicolon (;). A hexadecimal number
is signaled by the use of "x" after the "#" sign.
Since the codepoint for capital A macron (Ā) is U+0100, the entity code would be
Ā (either version works in many browsers).
The decimal template is
&#<dec-number>; without the
x. However, you must make sure that your code is in a Base 10 numbner.
The hex number x100 for Ā is 16 cubed (163) or 16 × 16 × 16 or 256. The decimal entity code for capital A macron (Ā) is
|Capital A with Macron (Ā)||Numeric Code||HTML Entity Code||Result|
Use the following code to declare that your HTML page is using
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Browsers and content platforms may use prefer different forms of an entity code, so it's wise to test a code in different platforms.
Also, so codepoint can be displayed unless the browser has access to the correct font. See the Languages page for information about each script and language.
The following tools are available to convert between hexadecimal and decimal numbers.
You can use the free Calculator utility to convert hexadecimal number to decimal numbers. To use this tool:
The Calculator application includes hex conversion and Unicode conversion calculator.
©Penn State University, 2000-2013.
This Web page maintained by Teaching and Learning with Technology, a unit of Information Technology Services. For questions or comments on this Web page, please contact Elizabeth J. Pyatt (firstname.lastname@example.org).
This site uses Unicode to display non-English characters. This site is best viewed in the most recent versions of your browser.
Unicode character names and hexadecimal entity codes are taken from the public Unicode Character Charts.
This publication is available in alternate media upon request.
Last Modified: Tuesday, 28-Mar-2017 14:58:41 EDT