Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > String Manipulation > Character Operations > ToCharacterCode >

ToCharacterCode

ToCharacterCode
gives a list of the integer codes corresponding to the characters in a string.
ToCharacterCode
gives integer codes according to the specified encoding.
  • ToCharacterCode returns standard internal character codes used by Mathematica, which are the same on all computer systems.
  • For characters on an ordinary American English keyboard, the character codes follow the ASCII standard.
  • For common European languages, they follow the ISO Latin-1 standard.
  • For other characters, they follow the Unicode standard.
  • Mathematica defines various additional characters in private Unicode space, with character codes between 64256 and 64300.
  • If a particular character has no character code in a given encoding, ToCharacterCode returns None in place of a character code.
  • ToCharacterCode gives a list of the lists of integer codes for each of the .
Find ASCII or Unicode character codes:
Reassemble a string from character codes:
Find ASCII or Unicode character codes:
In[1]:=
Click for copyable input
Out[1]=
Reassemble a string from character codes:
In[2]:=
Click for copyable input
Out[2]=
"Plot" a string:
New in 2 | Last modified in 4
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF