• 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
Re: Encoding problems with WO4.x
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Encoding problems with WO4.x


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

On Thu, 16 Jun 2005 11:39:54 +0200, Daniel Bleisteiner <email@hidden> wrote:
-(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];
}

It needs an additional...

-(void) takeValuesForRequest: (WORequest *) r inContext: (WOContext *) c
{
  [r setFormValueEncodingDetectionEnabled:NO];
  [r setDefaultFormValueEncoding:NSUTF8StringEncoding];
  [super takeValuesForRequest:r inContext:c];
}

Now also the other direction works from browser to server... voila. Hard work... somebody should write this down!

--
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: Chuck Hill <email@hidden>
References: 
 >Encoding problems with WO4.x (From: "Daniel Bleisteiner" <email@hidden>)

  • Prev by Date: Re: package com.webobjects.foundation.* doesn't exist
  • Next by Date: The Future of Eclipse and WebObjects
  • Previous by thread: Encoding problems with WO4.x
  • Next by thread: Re: Encoding problems with WO4.x
  • Index(es):
    • Date
    • Thread