3

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?

Geoffrey Litt
  • 160
  • 1
  • 8

1 Answers1

2

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
Pyro
  • 2,101
  • 2
  • 15
  • 6