Re:You probably don't need to validate UTF-8 strings
by samatman on Thursday May 16, 2024 @08:48PM
(#40385175)
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.
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.