a thoughtful web.
Good ideas and conversation. No ads, no tracking.   Login or Take a Tour!
comment by deanSolecki




thundara  ·  3198 days ago  ·  link  ·  

TL;DR: state the encoding

    If you completely forget everything I just explained, please remember one extremely important fact. It does not make sense to have a string without knowing what encoding it uses. You can no longer stick your head in the sand and pretend that "plain" text is ASCII.
lke  ·  3198 days ago  ·  link  ·  

No the piece doesn't tell you what you should use. But what you need to consider when working with strings.

The author mention using UCS2 (UTF-16) in his products but exporting any products to UTF-8.

j4d3  ·  3198 days ago  ·  link  ·  

I was thinking almost exactly the same thing. I'd add only: everywhere. In your spreadsheet, in your CSV, in your database, in your back-end language, in your JavaScript, and sure, in your HTML.