Hacker News new | ask | show | jobs
by samatman 763 days ago
I don't understand how a language runtime is supposed to prevent your colleague from using an unexpected encoding.

Next time you try to load whoops-weird-encoding.txt as utf-8, and get garbage, may I suggest `file whoops-weird-encoding.txt`? It's pretty good at guessing.

There might be a Julia package which can do that as well. I haven't run into the problem so I have no need to check.