Jun
3
Does ooc support UTF-8?
Yes and no. String length() returns the number of bytes, not in characters. UTF-8 is tricky. There are no strict boundaries between characters, or rather, ‘grapheme clusters’.
Integrating something like utf8proc could be interesting, but every lib has its limitations. The most important thing is to know how far you have to go for your app.
But as this yajl example shows, you can start using UTF-8 in your ooc app today. Just don’t expect printf, etc. to do correct padding, etc.