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

UTF-8 uses less memory if your string happens to contain mostly characters that UTF-8 can represent in a single byte (like english text). I expect UTF-8 will actually use more memory if you're working with e.g. japanese, arabic, etc..


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

Search: