3

I'm compiling a documentation with DocFx from Visual Studio with the NuGet package.

I write in Italian and we have a lot of characters like: à è ì ò ù. In the final render, my page looks like this:

Characters error image

The final html looks like this:

enter image description here

How can I make it render correctly?

Francesco Bonizzi
  • 5,142
  • 6
  • 49
  • 88
  • 1
    That's the same issue faced with web pages and applications. Somewhere, you are using an ASCII codepage. This could be the source file itself (saving eg as ANSI instead of UTF8), or using a hard-coded non-Unicode encoding, or the tooling may require an explicit encoding parameter. – Panagiotis Kanavos Nov 03 '16 at 13:32
  • I checked with Notepad++, my .md files are encoded in ANSI. How can I switch that directly from VS (2015)? – Francesco Bonizzi Nov 03 '16 at 16:44
  • 1
    The `Save` button in `File > Save As` is actually a dropdown button. Select `Save with Encoding` – Panagiotis Kanavos Nov 03 '16 at 16:48

1 Answers1

4

I solved the issue saving the .md file with UTF-8 (without BOM) encoding.

Francesco Bonizzi
  • 5,142
  • 6
  • 49
  • 88