Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Is it possible to convert a charcode/keycode to a string?

I want to do this to create variables in a generated equation.

share|improve this question

1 Answer 1

up vote 16 down vote accepted

You can use

ToCharacterCode["abcABCαβγ"]
(*
=>    {97, 98, 99, 65, 66, 67, 945, 946, 947}
*)
FromCharacterCode[%]
(*
=>    "abcABCαβγ"
*)

To create unique symbols, use

Unique["x"]
share|improve this answer

Your Answer

 
discard

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.