Hello everyone,

i've localized an application, turning all in UTF-8 with the help of the mighty Practical WO (chapter 8).
All works fine, except the URLs encoded in UTF-8.
I've added the WOURLEncoding=UTF-8 in all my URLs and WOMessage.setDefaultURLEncoding("UTF8") in Application's constructor. This works fine in development but doesn't work in deployment on an another server.

I found out that in deployment the Http Adaptor decodes (with a certain charset) directly the parameters whereas in development mode the Adaptor just transmits the URL encoded as it receives it and then WO decodes it right.

For a request "recherche?keyword=caf%C3%A9&WOURLEncoding=UTF-8", in / tmp/WebObjects.log i get :

Development (Mac OS X - WO 5.3.3) :
Request GET /cgi-bin/WebObjects/MyApp.woa/-50267/wa/recherche? keyword=caf%C3%A9&WOURLEncoding=UTF-8
Notice how the value "café" is still encoded caf%C3%A9

Deployment (Mac OS X Server - WO 5.3.3) :
Request GET /cgi-bin/WebObjects/MyApp.woa/1/wa/recherche? keyword=cafeÌ&WOURLEncoding=UTF-8 Notice how the value "café" is decoded from caf%C3%A9 with a certain charset

I guess that has something to do with the configuration of the Adaptor but i couldn't find any differences...
Has anyone already run into something similar ? This drives me nuts !

Thanks,

Alexis TUAL

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to