This is documentation for Mathematica 4, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

StringInsert (modified)FromCharacterCode (modified)

ToCharacterCode

FilledSmallSquareToCharacterCode["string"] gives a list of the integer codes corresponding to the characters in a string.

FilledSmallSquareToCharacterCode["string", "encoding"] gives integer codes according to the specified encoding.

FilledSmallSquareToCharacterCode handles both ordinary and special characters.

FilledSmallSquareToCharacterCode["string"] returns standard internal character codes used by Mathematica, which are the same on all computer systems.

FilledSmallSquare For characters on an ordinary American English keyboard, the character codes follow the ASCII standard.

FilledSmallSquare For common European languages, they follow the ISO Latin-1 standard.

FilledSmallSquare For other characters, they follow the Unicode standard.

FilledSmallSquareMathematica defines various additional characters in private Unicode space, with character codes between 64256 and 64300.

FilledSmallSquare Character codes returned by ToCharacterCode["string"] lie between 0 and 65535.

FilledSmallSquare Encodings supported in ToCharacterCode["string", "encoding"] are listed in the notes for $CharacterEncoding.

FilledSmallSquare If a particular character has no character code in a given encoding, ToCharacterCode returns None in place of a character code.

FilledSmallSquareToCharacterCode["", "", ... ] gives a list of the lists of integer codes for each of the .

FilledSmallSquare See The Mathematica Book: Section 2.7.7.

FilledSmallSquare See also: FromCharacterCode, Characters, CharacterRange, $CharacterEncoding, DigitQ, LetterQ, InputForm.

Further Examples

StringInsert (modified)FromCharacterCode (modified)