Re: weird combination! (followup: Form field ignored?!? Weird...)
Re: weird combination! (followup: Form field ignored?!? Weird...)
- Subject: Re: weird combination! (followup: Form field ignored?!? Weird...)
- From: Peter Vandoros <email@hidden>
- Date: Fri, 26 Sep 2008 10:33:35 +1000
Hi Chuck,
On 26/09/2008, at 4:02 AM, Chuck Hill wrote:
(b) using UTF-8 as the page encoding, by
public class Application extends WOApplication {
...
// ensure UTF-8 is actually used anywhere
static public void updateResponseForUTF8(WOResponse rr) {
rr.setContentEncoding(_NSUtilities.UTF8StringEncoding);
Unless you are using 5.4.2 or 5.4.3 (can't recall which now, 5.4.3 I
think), _NSUtilities.UTF8StringEncoding returns the incorrect "UTF8"
string, no hyphen. This can cause the request to think that the
encoding has changed ( ! "UTF8".equals("UTF-8")) and it then
discards the form values. But with the "multipart/form-data" it
then can't recreate them so you get null. My bug notes say, "The
hours this has cost me..."
Try using rr.setContentEncoding("UTF-8");
Is this an issue with WO 5.2 and 5.3 or just 5.4?
Will changing usages of UTF8 to UTF-8 cause any issues with WO 5.2 or
5.3? I ask because we have been using _NSUtilities.UTF8StringEncoding
in a few places for years now and have not come across this issue,
maybe we've just been lucky. I don't want to change anything unless I
am certain that this will definitely not break anything. Obviously we
are going to test any changes we make, I just wanted your opinion on
this.
Thanks
Peter Vandoros
Software Engineer
Etech Group Pty Ltd
Level 3/21 Victoria St
Melbourne VIC 3000
Australia
Ph: +61 3 9639 9677
Fax: +61 3 9639 9577
----------------------------------
IMPORTANT: This e-mail message and any attachments are confidential
and may be privileged. If received in error, please reply to this
message and destroy all copies and any attachments. You should check
this message and any attachments for viruses or defects. Our liability
is limited to resupplying any affected message or attachments. For
more information about Etech Group, please visit us at http://www.etechgroup.com.au
.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden