[Seaside] convert from quad-byte single or double quote characters to single byte?

PAUL DEBRUICKER pdebruic at gmail.com
Wed Dec 26 16:44:57 UTC 2018


Hi - 

I'm getting a bug when someone submits a form with smart quotes in it. e.g. 

Braun’s


(The quote mark there is a Unicode16 right single quote  - char 8217 - http://www.codetable.net/decimal/8217)


Is there a recommended way to convert all unicode single or double quotes to their ascii equivalents?  Or should I think about processing these strings differently?  I'm not at all concerned about displaying the "smart quotes" to the user ever again.  


Thanks


More information about the seaside mailing list