You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Petr Stahl <pe...@rev.cz> on 2002/01/21 12:37:11 UTC
Problem with charset in turbine
Hi,
We use Turbine-3 with velocity-1.3 dev and still have the problem with
non 8859-1 charset.
Any char in template which is not in ISO-8859-1 charset is converted to "?".
What we should setup for correct handling with input/output charset?
Our configuration:
velocity.properties:
#----------------------------------------------------------------------------
# T E M P L A T E E N C O D I N G
#----------------------------------------------------------------------------
template.encoding=ISO-8859-2
default.contentType=text/html
input.encoding=ISO-8859-2
output.encoding=ISO-8859-2
TurbineResources.Properties:
services.LocalizationService.locale.default.bundle=MyBundle
services.LocalizationService.locale.default.language=cs
services.LocalizationService.locale.default.country=CZ
services.LocalizationService.locale.default.charset=ISO-8859-2
locale.default.language=cs
locale.default.country=CZ
locale.default.charset=ISO-8859-2
In Default.java returns:
data.getCharSet(); - ISO-8859-2
data.getResponse().getCharacterEncoding() - ISO-8859-1
data.getContentType() - text/html; charset=ISO-8859-2
We have also tested UTF-8 with +- same result.
Thank
Petr Stahl
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Problem with charset in turbine
Posted by Daniel Rall <dl...@finemaltcoding.com>.
Hi Petr. Take a look at Scarab <http://scarab.tigris.org/>. It's a
T3 app, and Jon has got it working there.
Petr Stahl <pe...@rev.cz> writes:
> Hi,
> We use Turbine-3 with velocity-1.3 dev and still have the problem with
> non 8859-1 charset.
> Any char in template which is not in ISO-8859-1 charset is converted to "?".
> What we should setup for correct handling with input/output charset?
>
> Our configuration:
>
> velocity.properties:
> #----------------------------------------------------------------------------
> # T E M P L A T E E N C O D I N G
> #----------------------------------------------------------------------------
> template.encoding=ISO-8859-2
> default.contentType=text/html
> input.encoding=ISO-8859-2
> output.encoding=ISO-8859-2
>
> TurbineResources.Properties:
> services.LocalizationService.locale.default.bundle=MyBundle
> services.LocalizationService.locale.default.language=cs
> services.LocalizationService.locale.default.country=CZ
> services.LocalizationService.locale.default.charset=ISO-8859-2
>
> locale.default.language=cs
> locale.default.country=CZ
> locale.default.charset=ISO-8859-2
>
>
>
> In Default.java returns:
> data.getCharSet(); - ISO-8859-2
> data.getResponse().getCharacterEncoding() - ISO-8859-1
> data.getContentType() - text/html; charset=ISO-8859-2
>
> We have also tested UTF-8 with +- same result.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>