Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

customHelper language specific characters #1231

Closed
dbvcode opened this issue Jun 14, 2016 · 2 comments
Closed

customHelper language specific characters #1231

dbvcode opened this issue Jun 14, 2016 · 2 comments

Comments

@dbvcode
Copy link

dbvcode commented Jun 14, 2016

Hello,
I made a project with handlebars. It works great and does what it has to do.
The only problem I have is that with a custom helper I do not get the language specific characters thru.
For the sake of simplicity this is what I have:

Handlebars.registerHelper('html10n', function (str) {
    return "ß ăî ومض";
});

I call it with:
{{html10n "blablabla"}}

Unfortunately I get this output: � ?� ???

Even worse than this is that on http://tryhandlebarsjs.com/ my helper works flawlessly and the ouput is ß ăî ومض
Do you have any pointers on this?
Thanks.

@dbvcode
Copy link
Author

dbvcode commented Jun 14, 2016

It was my bad.
I have placed the registerHelper() in a file that was ANSI encoded.
It works as expected.

@stevenvachon
Copy link

Please close, then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants