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

> Is java.lang.String still UTF-16?

Yes.

> Is there any plan to fix that?

That's not really possible as strings are defined in terms of char and guarantee O(1) access to UTF16 code units. They might try to switch to "indexed UTF8" (as pypy did in the Python ecosystem whereas "CPython proper" refused to switch to UTF8 with the Python 3 upheaval and went with the death trap that is PEP 393 instead).



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

Search: