Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

1
  • Either your platform default encoding is UTF8, and your code just creates an exact copy of the original file, or it's not, and you're creating the a copy of the file, but with a different encoding. The new file still contains the unicode escape sequences. You need some code to extract the unicode escape sequences and transform them to actual characters. Does the file really contain escape sequences, or is your text editor transforming special characters to escape sequences? Commented Oct 26, 2015 at 17:07