• 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
( SOLVED :-) Encoding problems with direct action
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

( SOLVED :-) Encoding problems with direct action


  • Subject: ( SOLVED :-) Encoding problems with direct action
  • From: Jacky Gagnon <email@hidden>
  • Date: Mon, 20 Jan 2003 16:14:30 -0500

Hi,

Thanks for your help.

For Direct Action over-riding Application or Session appendToResponse/takeValuesForRequest don't solved the problem for Direct Action. Direct Actions don't use the same standard request-response loop than Component Action I think ( I didn't found too much information about direct action procession :-( ).

But if I over-ride those methods in the particular components returned by direct action, all run perfectly! :-)
For components returned by component action, over-ride those in Application or Session.


I don't know if its the best solution, but if you have a better solution, let me know.

Thanks!

Jacky


On Lundi, janv 20, 2003, at 15:39 America/Montreal, Jonathan Rochkind wrote:


You could try over-riding _Application_ appendToResponse/takeValuesForRequest, instead of Session. I believe that would work. I'm not sure why the wodev article reccomends Session instead of Application---maybe just to allow you write logic that sets different encodings for different sessions if you want.

You could also over-ride those methods in the particular _component_ (or components) you are returning from a direct action. You could do this in addition to doing it in Session and/or Application, only on the components you will be using with direct actions.

Those are the methods that come to mind; I'm sure there are other ways, there might be better ways.

At 03:07 PM 1/20/2003 -0500, Jacky Gagnon wrote:
Hi,

I try to use UTF-8 encoding in my WOApp.

When I use components actions, no problems. I use the strategy found
on WODEV:
http://wodev.spearway.com/cgi-bin/WebObjects/WODev.woa/wa/ Main?wikiPage=InternationalCharacters


The problem is when I use direct action for login: appendToResponse and
takeValuesFromRequest are not used and french accent are not displayed
correctly in WOString until I opened the session. My Java String are
ok in the debugger.



How can I resolve this problem?

Thanks!

Jacky
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Lisp
  • Next by Date: Re: Lisp
  • Previous by thread: Encoding problems with direct action
  • Next by thread: Direct to Java Problem
  • Index(es):
    • Date
    • Thread