Mantis - Quercus
Viewing Issue Advanced Details
5996 major always 04-20-16 10:38 04-26-16 10:03
ebo  
 
normal  
new  
open  
none    
none  
0005996: Ajax UTF-8 garbled
When submitting UTF-8 data via Ajax, it gets garbled in the back-end.

Notes
(0006685)
ebo   
04-20-16 10:58   
Using jQuery's Ajax() method which defaults to UTF-8.

Basically when sending a string like this: Hauptstraße 11

it gets received like this in PHP: Hauptstra&65533;e 11
(0006689)
ebo   
04-26-16 10:03   
A workaround is to set the jQuery.Ajax() setting contentType to 'application/x-www-form-urlencoded'.
The default value is 'application/x-www-form-urlencoded; charset=UTF-8'