11ty / eleventy

A simpler site generator. Transforms a directory of templates (of varying types) into HTML.
https://www.11ty.dev/
MIT License
17.19k stars 494 forks source link

Templates compiling to replacement characters #859

Closed evlay closed 4 years ago

evlay commented 4 years ago

Describe the bug Templates compiling to replacement characters

To Reproduce Steps to reproduce the behavior:

I produced this bug while following the Getting Started page of the documentation.

  1. cmd: mkdir eleventy-sample
  2. cmd: cd eleventy-sample
  3. cmd: npm init -y
  4. cmd: npm install --save-dev @11ty/eleventy
  5. cmd: npx @11ty/eleventy
  6. cmd: echo '<!doctype html>Page title

    Hi' > index.html

  7. cmd: echo '# Page header' > README.md
  8. cmd: npx @11ty/eleventy --serve
  9. visit localhost port in web browser

Expected behavior A clear and concise description of what you expected to happen.

Screenshots image image

Environment:

Additional context N/A

evlay commented 4 years ago

Resolved. Files created using the "echo" command on powershell were UTF-16 encoded files. Changed to UTF-8

zachleat commented 2 years ago

Upvote https://github.com/11ty/eleventy/issues/2323 if you’d like!

zachleat commented 4 months ago

Read more about progress on this issue here: https://github.com/11ty/eleventy/issues/2082#issuecomment-2168828502