Encoding error with Japanese text using nanoc

I'm having trouble getting Japanese text to display properly on a website compiled using nanoc. I have the following markup in an HTML file, which is not going through any filters or layouts upon compilation:

<a class="push_button blue" href="./ja">
  日本語
</a>

and I saved the file with UTF-8 encoding and included <meta charset="utf-8"> in the head of the HTML document.

But the final markup produced by nanoc in the output folder is:

<a class="push_button blue" href="./ja">
  日本語
</a>

I'm not sure if this problem is specific to nanoc or if it's a general text encoding issue, but could someone suggest where this might be going wrong?

Answers


I'm trying nanoc with Pali language and this helped me:

#lib/default.rb
Encoding.default_internal = Encoding::UTF_8
Encoding.default_external = Encoding::UTF_8

Need Your Help

Java XML Validation: Unable to resolve definitions from local XSD files

java xml validation xsd saml

I'm trying to validate xml, but I'm trying to do it without an internet connection. Therefore, I've tried to download all the XSD's that I need and change the imports to the local files, but it's u...

Converting date to proper format

c# sql asp.net sql-server datetime

I have a table in an ms-sql database which contains dates in a column like so: