Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by wat10000

3 hours ago

If you used UTF-8 then you can probably fix those pretty easily. UTF-8 is sufficiently structured that it’s extremely unlikely for a string that’s written in another encoding to be valid UTF-8 by accident. If you write some code to try decoding as UTF-8 and set that as the encoding when it succeeds, you’re unlikely to damage anything in the process.

0 comments

wat10000

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities