Re[3]: Charset encoding issue
I had a similar problem with RH9.0. Form data enconded with application/x-www-form-urlencoded worked just fine with iso8859-1 special characters, but multipart/form-data made strange things appear. If I declared the page encoding to be UTF-8, the data was correctly sent, but the browser was unable to show it properly later. I tested this with every browser I have access to: Mozilla, Galeon, Firebird, Konqueror, IE 6.0, and the behavihour was similar in every case. If I declared the page encoding to be iso8859-1, data was corrupted. The root of the problem seemed to be in my LOCALE settings. I had es_ES.UTF-8, and when I changed this to es_ES (without UTF) everything worked fine again. This is the same in Tomcat 4.0.6 and 4.1.27. I've found the solution, but I also like to understand better what is happening here. Saludos! -- +- | Francisco Vides Fernández [EMAIL PROTECTED] | Director técnico. | Teléfono fijo: 952 60 29 59 | Teléfono móvil: 661 67 32 73 | Fax: 952 60 29 59 | Dédalo Ingenieros http://www.dedaloingenieros.com/ | PGP: http://pgp.rediris.es:11371/pks/lookup?op=indexsearch=0x5AAE6285 +-- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[3]: Charset encoding issue
Hi guys. I'll try to answer your questions : ((1)) I've found a message (at http://w6.metronet.com/~wjm/tomcat/2001/Mar/msg00547.html) that seems to explain this odd behaviour (but i'm not sure) : Tomcat follows the HTML standard, which explicitly declares that MIME type application/x-www-form-urlencoded is suitable ONLY for transferring ASCII (but will of course work for ISO 8859-1 as well). See http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4.1 It says: The content type application/x-www-form-urlencoded is inefficient for sending large quantities of binary data or text containing non-ASCII characters. The content type multipart/form-data should be used for submitting forms that contain files, non-ASCII data, and binary data. ((2)) Fernandez wrote : Fernandez I've recently have a similar problem with spanish language. Fernandez What OS are you running Tomcat on? What are your LOCALE settings? Anton wrote : Anton What browser are you using? Anton What OS are you on? Anton If it is Windows, what are the regional settings? Anton Is it an English or a localized version of Windows? Anton What language are you typing in? SO : Red Hat Linux 9 Browsers : Galeon e Mozilla Reg. Settings: English Keyboard Set.: English (internacional) Locale : Not modified. The JVM is using [us,EN], i think. But thats ok because i prefer to test my application without change locale to [pt,BR] (we never know when 2 webapp will run using differents locale settings) ((3)) I don't know why page contentType + form enctype multipart is the only working combination but its ok for me. I just would like to understand it :-| Thanks again, guys !!! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]