• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Encoding problems with WO4.x
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Encoding problems with WO4.x


  • Subject: Encoding problems with WO4.x
  • From: "Daniel Bleisteiner" <email@hidden>
  • Date: Thu, 16 Jun 2005 11:39:53 +0200
  • Organization: cidentigo

I have problems taming WebObjects 4.x encoding!

We have a WebGUI which uses several forms to submit texts into bound NSString objects. Now a customer of us wants to use characters other than ISO-8859-1 like OMEGA or polish characters. Those characters come out as &#123; in the NSString object after client submission. So I checked the web for all infos I could get and found the following:

I've implemented appendToResponse in Session and my wopage like this:

-(void) appendToResponse: (WOResponse *) r inContext: (WOContext *) c
{
[r setHeader:@"text/html; charsetUTF-8; encoding=UTF8" forKey:@"Content-type"];
[r setContentEncoding:NSUTF8StringEncoding];
[super appendToResponse:r inContext:c];
}


This tells the webbrowser to use UTF-8 instead of its default (and Opera does this - I've checked it using a sniffer) and it SHOULD tell the response to encode the characters properly inside the HTTP protocol. But it doesn't work as expected!

When submitting a form with the OMEGA char the char is send with the unicode bytes for it to the server. But WebObjects calls the setString method of my object with \U00ce\U00a9 instead of \03a9 - why?!

Is there anything missing? I'm stuck!

--
Daniel Bleisteiner - Chief Developer - email@hidden
cidentigo GmbH, Reuchlinstrasse 10-11, 10553 Berlin, Germany
_______________________________________________
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


  • Follow-Ups:
    • Re: Encoding problems with WO4.x
      • From: "Daniel Bleisteiner" <email@hidden>
  • Prev by Date: Re: tomcat version?
  • Next by Date: WO, MySQL and UTF-8 issue
  • Previous by thread: Re: Error Array Problem
  • Next by thread: Re: Encoding problems with WO4.x
  • Index(es):
    • Date
    • Thread