News for hackers. Stuff that matters.
Re:UTF-8 Everywhere (2012) by tracker1 on Sunday June 19, 2016 @07:16PM (#11935203)
Likewise, I wish JS had just changed the internal representation of strings to UTF8, and accepted that some older code might break instead of adding in the new string/regex bits. It would have made far more code simple start working with large/multibyte/international characters than it ever would have broken.
Re:UTF-8 Everywhere (2012) by 0x4a42 on Monday June 20, 2016 @05:32PM (#11941750)
Wouldn't it be possible by using a global switch (ie: see "use strict" as an example). You could just switch to the default character encoding without breaking existings js websites/apps?