Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: markomalley
If I paste Unicode character 2019 into my reply and hit preview, the server sees the UTF-8 encoding e2 80 99 and (mis)translates each byte into a separate HTML entity: ’

If it was working correctly, it would send back something like ’

The POST is being sent as UTF-8, and the result is coming back in UTF-8, so the scripts on the backend are probably just using the wrong charset (iso-8859-1?) to decode the form data.

This may help: http://ahinea.com/en/tech/perl-unicode-struggle.html
42 posted on 11/11/2015 9:18:11 PM PST by bornred
[ Post Reply | Private Reply | To 1 | View Replies ]


To: bornred
If I paste Unicode character 2019 into my reply and hit preview, the server sees the UTF-8 encoding e2 80 99 and (mis)translates each byte into a separate HTML entity: ’

I think you may be on to something. Maybe the SQL database is somehow using the wrong charset?

Who knows.

47 posted on 11/12/2015 6:06:34 AM PST by unixfox (Abolish Slavery, Repeal the 16th Amendment)
[ Post Reply | Private Reply | To 42 | View Replies ]

To: bornred

Use this for now,

http://dan.hersam.com/tools/smart-quotes.html


48 posted on 11/12/2015 6:08:24 AM PST by Enlightened1
[ Post Reply | Private Reply | To 42 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson