Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

String manipulation takes a dive when characters beyond \:FFFF are used e.g. Mathematical Alphanumeric Symbols. The characters display fine but doing string manipulation is very unpredictable:

ToCharacterCode["𝕬"] (* Actually is \U0001d56c *)
(* {55349, 56684} *)
(* 2 *)

Compare with python

>>> len(u'𝕬') 

$CharacterEncoding = "Unicode" or $CharacterEncoding = "UTF8" does not help, is there some way to set string encoding properly?

share|improve this question
@WReach Thanks! Couldn't find them searching google and here. – ssch Nov 23 '12 at 19:36
@WReach Would you be willing to write a summary answer here, unless a duplicate already exists on this site? – Mr.Wizard May 23 '15 at 12:39
@Mr.Wizard I added a CW response that points to some of the related questions. The present question is more general than (215), so I am unsure as to whether it should be considered a duplicate. – WReach Jun 6 '15 at 23:04

As of version 10.1, Mathematica does not support characters beyond the basic multilingual pane. John Fultz of WRI stated this explicitly as a comment on this question, which asks how to access supplementary CJK ideographs outside of Plane 0.

Some of the issues, and partial workarounds, are discussed on StackOverflow here and here.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.