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.

I'm trying to import this file:

Import["https://dl.dropboxusercontent.com/u/35192406/jarlaxxe_tweets.\
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
2  
New in Mathematica 10: Emoji support! –  shrx Jun 22 '13 at 8:52
    
Anyone knows any fix or workaround? –  Trollkemada 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
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.