Re: Encoding problems with WO4.x
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