I am using velocity template to send email(In chinese language).So using hexa decimal charecter in template.But am getting some lexical error.
Here i have shown both normal java code implementation and template implemnetation.
Here in the above normal java piece of code, \"\u8bf7\u6c42:\" will encode properly in to Chinese character.
But if I use same \"\u8bf7\u6c42:\" in velocity template(eml.vsl) using
Note-message is an object of class EmailMsg
it is throwing java.lang.Exception: Error processing velocity script:
Lexical error: org.apache.velocity.runtime.parser.TokenMgrError: Lexical error at line 59, column 11. Encountered: "\"" (34), after : "\\"
Can anyone let me know what could be the fix for it.