Ask HN: How to defend against ด้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็...

27 points by joegreen ↗ HN
I've seen multiple pages or applications where using characters like ด้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็ completely breaks layouts. As a developer, how should I defend my web applications against such characters, assuming I otherwise want to allow unicode characters in user input?

3 comments

[ 3.3 ms ] story [ 22.5 ms ] thread
(comment deleted)
ด้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็
I think StackOverflow would be a more appropriate place for this question.