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

I'm trying to import this file:

csv", CharacterEncoding -> "UTF8"]

But I am getting errors like:

$CharacterEncoding::utf8: The byte sequence {240} could not be interpreted as a character in the UTF-8 character encoding. >>

Any idea why? And any solution?

share|improve this question
It's not happy with one of your Emoji characters... This one 😡 seems to be the problem. – cormullion Jun 22 '13 at 6:48
... in fact there are others which are also not being translated, such as 😋😝 <- (that wasn't me adding a smiley face, just showing you what they are :) – cormullion Jun 22 '13 at 7:05
New in Mathematica 10: Emoji support! – shrx Jun 22 '13 at 8:52
Anyone knows any fix or workaround? – José D. Jun 22 '13 at 12:21
easy to repair after importing - just replace the four characters with something else... eg StringReplace[#, "ð" ~~ ___ -> ":)"] & /@ text. Workround: don't use Emoji? Pre-process text before importing? – cormullion Jun 22 '13 at 14:33

Your Answer


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

Browse other questions tagged or ask your own question.