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

UTF 8 characters don't render in AngularJS 2 template #9

Open
Elvin1492 opened this issue Oct 29, 2016 · 2 comments
Open

UTF 8 characters don't render in AngularJS 2 template #9

Elvin1492 opened this issue Oct 29, 2016 · 2 comments

Comments

@Elvin1492
Copy link

We create angularJS2 application. In some component utf8 character shown normally but some don't. Specially templates that come from router-outlet. I think this extension has some bugs.

@SteveSandersonMS
Copy link
Contributor

For issues specifically with the Angular template, would you be able to post them to https://github.com/aspnet/JavaScriptServices/issues? That's where we're building the template contents.

In this case, please be sure to provide repro steps. I'm not sure how to create the problem you've described (I just tried for example putting the character 'Ꮿ' in the middle of one of the templates in the generated Angular 2 app, and it rendered fine).

@HugCoder
Copy link

HugCoder commented Dec 8, 2016

I'm pretty sure this has nothing to do with the extension, but is because of Visual Studio for some reason always saving files in ANSI, not UTF8. There's another extension that solves this though, called ForceUTF8. You can find it here:
https://marketplace.visualstudio.com/items?itemName=vilicvane.ForceUTF8
or
https://marketplace.visualstudio.com/items?itemName=jz5.ForceUTF8withBOM
Use the latter if you need UTF8 with BOM. Both should do, but I tried with BOM and it worked in my case. I haven't tried it with this extension though, so cannot promise that it solves your particular problem.

If you use Visual Studio Code, it saves in UTF8, so it's no problem. Visual Studio, however, doesn't seem to not understand the issue of forcing ANSI on the world though.

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