I have developed a website for Chinese audience and using Velocity template engine. It definitely supports different encoding for sure.
I think if you use Velocity to send out emails, it should be ok. However, I could see the problem with the java email library you are using, that may or may not support well the UTF-8 encoding for example. I ran into that problem lately trying to send out emails and I used Apache commons email library, but for some reason, the email contained garbage text. I wrote a parser around Velocity to use it as an offline tool to generate the template. If you are interested, I could share it with this mailing list. Jian http://www.JiansNet.com On Fri, Mar 13, 2009 at 4:00 AM, Preetam Palwe <[email protected]> wrote: > Hello all > > I am implementing a template based email library using velocity > templates. Now I want to use I18N in it. > Can anyone tell me whether velocity engine supports I18N? > After some googling I found that there are velocity tools for this > purpose. But I think one can use velocity tools in a web based > application. I have a non-web (without any jsp/servlet/struts container) > application under development. > > If velocity tools is the solution then one should configure the tools in > order to use in code? > > > Any help will be really very appreciated. > > Thanks in advance > ~pp > > > >
