Decode � to real character
问题 when I read data from Stream API of twitter and then write to xmlfile. But some special character like � will cause error (I mean when I open that xmlfile in Chrome, Chrome said that there was an error at that character!) I want to convert that encoded sequence ( � ) into real character () before writing to xmlfile! How to implement this? -------------ADDED-------------- This is the XMLFile content: <?xml version="1.0" encoding="UTF-8"?> <root> <text>@carlyraejepsen would be a