4 ms·
Sort of off topic. I still remember this project we inherited from DLI ages ago. Folks there were having difficulty with storing UTF-8 strings in JavaScript. Wh
by chungleong 7y ago
Sort of off topic. I still remember this project we inherited from DLI ages ago. Folks there were having difficulty with storing UTF-8 strings in JavaScript. Whenever a character gets truncated (due to db length limit), Netscape would complain and die. Someone apparently discovered that you wouldn't get the error if the broken UTF-8 text was in a JavaScript comment. So every text string in the program was a function that parses its own source code for a comment. It was a hilarious hack.