M
Matt Baker
Guest
Answering my own question: Seems like this character doesn’t exist in ISO8859-1… PHP: Problems converting "’" character from ISO-8859-1 to UTF-8 PASOE team should probably comment, but returning a 500 for a client encoding issue isn’t terribly friendly. A good 304 with a good error message about encoding failure would be nice here. A few things they can do Make sure they are declaring the proper content-type character encoding Reject the request on the client side and tell the user to fix it Consider stripping the bad character on the client before sending to the server (this doesn’t address the bad server behavior) Encode the bad character to something safer in the client before sending it to the server using javascript’s encodeURIComponent() function, then do something with it on the server.
Continue reading...
Continue reading...