You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Rafal Markut <ra...@mediawave.de> on 2005/10/18 16:40:27 UTC
Re: Problem Encoding - Forms content - wrong Turbine version
Hello,
I wrote wrong Turbine version. I use 2.1 (not 3.1). It's pretty old, and
it's not so widely used and ... maybe there is a bug ?
with best regards,
Rafal
----- Original Message -----
From: "Rafal Markut" <ra...@mediawave.de>
To: <ve...@jakarta.apache.org>
Sent: Tuesday, October 18, 2005 10:08 AM
Subject: Problem Encoding - Forms content
> Hello,
>
> I have following Problem. My system (Linux), Apache and Tomcat (5.x) are
> set on UTF-8.
> I use turbine 3.1 and velocity 1.3.1
>
> I have in TurbineResources.properties:
> services.VelocityService.input.encoding=UTF-8
> services.VelocityService.output.encoding=UTF-8
>
> In velocity file:
> $data.setCharSet( "UTF-8" )
> $page.setHttpEquiv("Content-Type", "text/html; charset=UTF-8")
> and it's set on the WebPage correctly.
>
> but ... when I press submit then in Action-Class:
>
> public void doPerform( RunData data, Context context ) throws Exception
> {
> data.getParameters().getCharacterEncoding() <- gives me US-ASCII
> data.getCharSet() <- gives me ISO-8859-1
>
> but it should give me UTF-8 (not ISO).
>
> Files on the file-system also are in UTF-8.
>
> This application worked before as ISO-8859-1 on the server which was
> configured as ISO-8859-1.
> But I changed all settings.
>
> What can I do with it ?
> I tried almost everything.
>
> I would be very greateful for help.
>
> with best regards,
> Rafal
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: Problem Encoding - Forms content - wrong Turbine version
Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
"Rafal Markut" <ra...@mediawave.de> writes:
>Hello,
>I wrote wrong Turbine version. I use 2.1 (not 3.1). It's pretty old, and
>it's not so widely used and ... maybe there is a bug ?
That is very probably a Turbine problem. The whole encoding shebang
was addressed in 2.3.2 and should work now.
Best regards
Henning
--
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH
hps@intermeta.de +49 9131 50 654 0 http://www.intermeta.de/
RedHat Certified Engineer -- Jakarta Turbine Development -- hero for hire
Linux, Java, perl, Solaris -- Consulting, Training, Development
4 - 8 - 15 - 16 - 23 - 42
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org