patrickkettner / grunt-compile-handlebars

grunt plugin to compile static html from a handlebars plugin
MIT License
115 stars 29 forks source link

Foreign characters missing #57

Closed eivers88 closed 8 years ago

eivers88 commented 9 years ago

For example, in my json file I have:

{ "myText" : "manillar de compilación gruñido" }

after creating a build I get this in my html:

manillar de compilaci�n gru�ido

Does anyone have any insight on why the special foreign characters aren't getting through?

Thanks, -Aaron

patrickkettner commented 9 years ago

Hey Aaron! What are you using to view your output?

eivers88 commented 9 years ago

I was using WebStorm but also double checked in Notepadd++ and Chrome

patrickkettner commented 9 years ago

@eivers88 I am not able to replicate this issue locally. It seems like it may be an encoding issue of the document you are using, however that wouldn't normally show up in an editor. Would you be able to post a config/gist/something so I can debug this further?

eivers88 commented 9 years ago

@patrickkettner Alright I through together a gist: https://gist.github.com/eivers88/cfa6a1c6e7901f6d39cc Hopefully that makes sense, let me know if there is something else I can do to help.

patrickkettner commented 9 years ago

hey @eivers88! I am so sorry it took so long to get back to you!

I am still not able to replicate the issue

When I run your project locally I get the following

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Título De La Página</title>
    <link rel="stylesheet" href="../assets/styles/main.css"/>
</head>
<body>
<h1>Título De La Página</h1><h2>Página principal Título</h2>
<p>manillar de compilación gruñido</p>    <script src="../assets/js/main.js"></script>
</body>
</html>

Can you elaborate on your setup (OS, browser, etc). A live code sample would be groovy