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

Yeah, you really need some specialized interface that encapsulates all the things you may need from your string processing, but can spit out a representation of that string in various encodings.

In line with the spirit of this article, that interface should use UTF-8 storage internally as well, but this should be transparent to the programmer anyway. Dealing with encoded strings directly is a recipe for heartache unless you're actually writing such a library.



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

Search: