Hello,

i had that problem too with an Oracle Database and XML files without proper
encoding specified. I've written a filter which translates all non
displayable characters to 'Numeric Entities' and configured Velocity to use
this filter.
If you're interested i can send you the code if i still have it (i switched
to JSP).

Reto
-----Urspr�ngliche Nachricht-----
Von: Zilvinas Binisevicius [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 21. November 2001 09:58
An: [EMAIL PROTECTED]
Betreff: Tomcat & Velocity Native language configuration problems


Hello,
I am using tomcat and velocity on Debian box. My servlets gets data from
postgresql database and merges it with velocity template. After merging I
see '?' instead of national characters. But if the same characters are used
in template body, then they are displayed correctly. The problem is only
with data I got from database. In database there are lithuanian characters
(encoding iso-8859-13). I thing there is something wrong with configuration.

in velocity.properties file i have:
input.encoding=iso-8859-13
output.encoding=iso-8859-13
but it looks like that these settings are only used for template, not for
merged data.

Maybe I missed something

Thanx for any help.

Zilvinas


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to