Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

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

I exported a list of characters say:

ClearAll[t, r, \[Theta], \[Phi]];
Export["hello.txt", {t, r, \[Theta], \[Phi]}, "List"];

the file has the correct symbols when opened with a text editor, however, when I imported it with Mathematica:

old = Import["hello.txt", "List"]

I get:

{t, r, θ, Ï}

Any idea of how can I recover the original symbols?

share|improve this question
up vote 6 down vote accepted

You have to specify the correct character encoding:

Export["hello.txt", {t, r, θ, ϕ}, "List"];

old = Import["hello.txt", "List", CharacterEncoding -> "UTF8"]

(* ==> {"t", "r", "θ", "ϕ"} *)
share|improve this answer
oh perfect it worked!, many thankx! – Gluoncito Jul 28 '13 at 2:06

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.