sicuramente utile..farò qualche test
Il tema (credo) sia molto interessante perchè costituisce uno scoglio per molti.
Cito dalla guida ufficiale di jquery
<<..
contentType
Default: 'application/x-www-form-urlencoded'
When sending data to the server, use this content-type. Default is "application/x-www-form-urlencoded", which is fine for most cases. If you explicitly pass in a content-type to $.ajax() then it'll always be sent to the server (even if no data is sent). Data will always be transmitted to the server using UTF-8 charset; you must decode this appropriately on the server side.
..>>
Ora, questo cosa vuol dire?
Viene proposto da alcuni di aggiungere l'opzione ad ajax:
contentType: "application/x-www-form-urlencoded;charset=ISO-8859-1"
Ma la guida non dice che viene sempre e comunque utilizzato UTF-8? Cosa significa allora questa soluzione?