0

I'm trying to use em dash (—) and multiplication symbol (×) in my Velocity template. But the output gives the following.

— for em dash

× for multiplication symbol

I have added <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> in the <head/> as well.

I tried using the following as well.

#set( $multiplySymbol = '×' )

But it gives the same output.

How to use these kind of special characters on Velocity?

Nimila Hiranya
  • 4,842
  • 10
  • 35
  • 52

1 Answers1

0

Used the following when getting the template vm file.

Template template = Velocity.getTemplate("template.vm", "UTF-8");

Thanks @user7294900

Nimila Hiranya
  • 4,842
  • 10
  • 35
  • 52