Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I’ve re-read so many times Joel’s article on Unicode. It’s also very helpful.

https://www.joelonsoftware.com/2003/10/08/the-absolute-minim...



Read that a few times back then as well, but that and other pieces of the day never told you how to actually write a program that supported Unicode. Just facts about it.

So I went around fixing UnicodeErrors in Python at random, for years, despite knowing all that stuff. It wasn't until I read Batchelder's piece on the "Unicode Sandwich," about a decade later that I finally learned how to write a program to support it properly, rather than playing whack-a-mole.


> ... Batchelder's piece on the "Unicode Sandwich," ...

Is this the piece you mean? https://nedbatchelder.com/text/unipain.html


I think so, looks like it was from a presentation.


^Necessary but not sufficient.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: