File a bug and we'll look into this deeper. The auto-detection of form value encodings has always been a little bit fragile. I'm surprised that turning it off doesn't fix the problem.

On Jun 24, 2008, at 2:30 PM, Kenny Leung wrote:

Hi All.

So, after extensive testing with my little HelloWorld app, these are the results:

The only thing that seems to work is setting <meta charset="UTF-8"></ meta> in the head of the document. Setting accept-charset="UTF-8" in the form does not seem to do anything.

I overrode WOApplication.dispatchRequest() to turn isFormValueEncodingDetectionEnabled() on and off, and the behaviour does change, but it's wrong both ways. I also tried using setDefaultFormValueEncoding("ISO8895_1"), and it did change the behaviour, but it was always the wrong behaviour. It seems that the only thing that works is to go along with the default UTF-8 behaviour.

-Kenny

On Jun 24, 2008, at 2:07 PM, Daryl Lee wrote:

Is WORequest.isFormValueEncodingDetectionEnabled() turned on? What happens if you turn it off/on?


On Jun 23, 2008, at 10:16 AM, Kenny Leung wrote:

Hi All.

I've bumped into an incompatibility between WebObjects 5.3 and 5.4. In 5.3, I could submit a form value with non-ASCII characters, and their encoding would be correctly interpreted. In 5.4, the encoding is misinterpreted.

I printed out the actual request contents, and, for instance e- acute is sent as %E9, which as far as I know is correct ISO8859 encoding. I read in the release notes that WO 5.4 now defaults to UTF8 encoding, so I tried to change the request's defaultFormValueEncoding to ISO8859_1. Then it got interpreted as a literal %E9!

Can anybody shed some light on this? I have searched the lists and the Google, and have come up empty.

Thanks!

-Kenny

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

This email sent to [EMAIL PROTECTED]


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

This email sent to [EMAIL PROTECTED]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
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