PRODUCTS
Products Overview
Mathematica
Mathematica for Students
Mathematica Home Edition
Wolfram
CDF Player
(free download)
Computable Document Format (CDF)
web
Mathematica
grid
Mathematica
Wolfram
Workbench
Wolfram
SystemModeler
Wolfram
Finance Platform
Mathematica
Add-Ons
Wolfram|Alpha Products
SOLUTIONS
Solutions Overview
Engineering
Aerospace Engineering & Defense
Chemical Engineering
Control Systems
Electrical Engineering
Image Processing
Industrial Engineering
Materials Science
Mechanical Engineering
Operations Research
Optics
Petroleum Engineering
Biotechnology & Medicine
Bioinformatics
Medical Imaging
Finance, Statistics & Business Analysis
Actuarial Sciences
Data Analysis & Mining
Econometrics
Economics
Financial Engineering & Mathematics
Financial Risk Management
Statistics
Software Engineering & Content Delivery
Authoring & Publishing
Interface Development
Software Engineering
Web Development
Science
Astronomy
Biological Sciences
Chemistry
Environmental Sciences
Geosciences
Social & Behavioral Sciences
Design, Arts & Entertainment
Game Design, Special Effects & Generative Art
Education
STEM Education Initiative
Higher Education
Community & Technical College Education
Primary & Secondary Education
Students
Technology
Computable Document Format (CDF)
High-Performance & Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
Merchandise
SUPPORT
Support Overview
Knowledge Base
Learning Center
Community & Forums
Training
Does My Site Have a License?
Wolfram User Portal
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Partnerships
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
All Sites
Wolfram|Alpha
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Media
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
New to
Mathematica
?
Find your learning path
»
Mathematica
>
Core Language
>
String Manipulation
>
Character Operations
>
ToCharacterCode
>
BUILT-IN MATHEMATICA SYMBOL
Character Codes
Tutorials »
|
FromCharacterCode
Characters
CharacterRange
CharacterEncoding
$CharacterEncoding
DigitQ
LetterQ
InputForm
See Also »
|
Atomic Elements of Expressions
Binary Data
Character Operations
Locale & Internationalization
Special Characters
String Manipulation
More About »
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.
MORE INFORMATION
ToCharacterCode
handles both ordinary and special characters.
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.
Character codes returned by
ToCharacterCode
lie between 0 and 65535.
Encodings supported in
ToCharacterCode
are listed in the notes for
$CharacterEncoding
.
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
.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
Find ASCII or Unicode character codes:
Reassemble a string from character codes:
Find ASCII or Unicode character codes:
In[1]:=
Out[1]=
Reassemble a string from character codes:
In[2]:=
Out[2]=
Neat Examples
(1)
"Plot" a string:
SEE ALSO
FromCharacterCode
Characters
CharacterRange
CharacterEncoding
$CharacterEncoding
DigitQ
LetterQ
InputForm
TUTORIALS
Character Codes
MORE ABOUT
Atomic Elements of Expressions
Binary Data
Character Operations
Locale & Internationalization
Special Characters
String Manipulation
New in 2 | Last modified in 4