Re: Ajax encoding problem Linux
Ian Roughley <[email protected]> Thu, 28 Dec 2006 11:46:37 -0500
| Newsgroups | gmane.comp.java.open-symphony.webwork |
|---|---|
| Message-ID | <[email protected]> |
Perhaps that is the problem... not having a full page may not invoke the
encoding logic? Rene, Ranier, Phil - have you had any experience with thi?
/Ian
Alexandre Jacques wrote:
> Hi Ian,
>
> I will try setting it up in the JSP page (even though its just a code
> snippet, not an entire page - with <HEAD> and stuff).
>
> If this does not work, then I'll try mailing the list.
>
> One thing I have tried was to make my action implementing
> ServletResponseAware and set the content type:
>
> response.addHeader("Content-type", "text/html; charset=iso-8859-1");
>
> But this also didn't work.
>
> Google-ing this problem I could see that this may be a hard issue to
> deal with. Does anyone also had problems with this kind of thing?
>
> The strange thing is that, since I am calling an Action and rendering
> a JSP page, I would swear that the behaviour should not change from
> what is already working when I call a 'normal' (not via Ajax) action.
>
> Regards,
>
> Alexandre Jacques
>
> On 12/28/06, Ian Roughley <[email protected]> wrote:
>> Have you tried explicitly setting the encoding in the JSP? The other
>> suggestion would be the prototype mailing list.
>>
>> /Ian
>>
>>
>>
>> Alexandre Jacques wrote:
>> > Hi,
>> >
>> > I am having some trouble (again) with character encoding. My pages
>> > (JSPs) are rendering OK, but if I call a remote action that returns a
>> > JPS (so I can use innerHTML) with Ajax, all my special characters
>> > appears as strange signs: "?" in IE and "�" in Firefox.
>> >
>> > My configuration is as follow:
>> >
>> > - in my Linux box:
>> >
>> > export LANG=pt_BR.ISO-8859-1
>> > export LC_ALL=pt_BR.ISO-8859-1
>> >
>> >
>> > - in webwork.properties:
>> >
>> > webwork.i18n.encoding=ISO-8859-1
>> > webwork.locale=pt_BR
>> >
>> > - And, for the sake of completeness, in my WebLogic startup script
>> I use:
>> >
>> > -Dfile.encoding=ISO-8859-1 -Duser.language=pt
>> >
>> > Does anyone have a clue?
>> >
>> > PS: I am using Prototype javascript library and I need to show
>> > Portuguese special characters.
>> >
>> > TIA
>> >
>> > Alexandre Jacques
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>