If you are using Wonder then just make sure your components have a .woo that specifies a UTF-8 encoding and make sure you call setDefaultEncoding("UTF-8") from your application constructor.

If you are not using Wonder then also make sure the .woo specifies UTF-8 encoding and you may want to make sure you have something like this in your application constructor:

                WOMessage.setDefaultEncoding("UTF-8");
                WOMessage.setDefaultURLEncoding("UTF-8");

and make sure encodeURI() that you are using encodes using "UTF-8".  ;-)



On Mar 14, 2009, at 8:37 AM, shravan kumar wrote:


Hello Group,

Problem:

I have a text field and user may enter any kind of text like french, spanish, german characters apart of english characters.

Am using AJAX to send this field input to server and get the matching data. While sending data to server I am using javascript encodeURI() function to encode the user entered text (for eg: Jiménez) and append it to the Ajax URL: http://localhost/cgi-bin/WebObjects/MyPeanut.woa/-45001/wo/G7enthVGBXdPyZWw2wZkFg/38.7.9?qin=jim%C3%A9nez

But on the server-side action method when I try to read the above user input using following api:

context().request().formValueForKey("qin")

following data is returned by above API: jiménez

"Can any one advise me how to exactly decode the user input in the WebObjects, encoded by encodeURI javascript function." I have checked the WORequest API and googled but could not find any helpful response.

Please advise.

Thanks in advance,
Shravan Kumar. M



_______________________________________________
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/rparada %40mac.com

This email sent to [email protected]

 _______________________________________________
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