3 ms·
This is a pretty well-known problem, but mostly irrelevant if you use UTF-8.
by treve 10y ago
This is a pretty well-known problem, but mostly irrelevant if you use UTF-8.
- colejohnson66 10y agoOr, you know, just doing the right thing(tm) and using parameterized queries
- SloopJon 10y agoSection 3.1 of Unicode technical report 36 describes a couple of similar things specific to UTF-8: overlong sequences, and ill-formed subsequences. Does your software conform to Unicode 3.0 and earlier, 3.1 through 5.1, or 5.2 and later? And do your server and client software agree? If you don't know the answer (and you depend on string sanitization), you may be at risk.
- yuhong 10y agoWhat is particularly fun is the history of GB2312/GBK/GB18030. I wonder how easy it would have been to change Win95 to use UTF-8 for example.