Search code examples
javascriptwso2jaggery-js

How to fix the character encoding produced by jaggery-js?


How to fix the character encoding problem produced by jaggery-js?

  <html>
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  </head>
  <body>
	  <% print('á, ú, č, š') %>
	  <p>ı, ü, ğ, ö , ç , ş , İ</p>
  </body>
  </html>

output:

á, ú, Ä, Å¡

ı, ü, Ä, ö , ç , Å , Ä°


Solution

  • There is an open issue for this on the project's Github repository, which has been open since August 2012. There are a few things on there you could try.