special chars Rx problem
See original GitHub issueHi, thanks for this package. When I use special characters in the resource files, the Localization service throws an invalid character exception due to the ‘Actualités’ => é
Any ideas how to fix this?
{
"HELLO": "Bonjour {{value}}",
"NAV_MENU_HOME": "Actualités",
"NAV_MENU_SHOP": "Boutique"
}
Error:
Localization service: SyntaxError: Invalid character
"Localization service:"
{
[functions]: ,
__proto__: { },
description: "Invalid character",
message: "Invalid character",
name: "SyntaxError",
number: -2146827274,
stack: "SyntaxError: Invalid character
at Json.parse (http://localhost:8186/libs/angular2.dev.js:390:7)
at Response.prototype.json (http://localhost:8186/libs/http.dev.js:296:9)
at Anonymous function (http://localhost:8186/libs/angular2localization.js:58:13)
at MapSubscriber.prototype._next (http://localhost:8186/libs/Rx.js:5039:9)
at Subscriber.prototype.next (http://localhost:8186/libs/Rx.js:10667:9)
at onLoad (http://localhost:8186/libs/http.dev.js:672:13)
at ZoneDelegate.prototype.invokeTask (http://localhost:8186/libs/angular2-polyfills.js:380:18)
at onInvokeTask (http://localhost:8186/libs/angular2.dev.js:2177:15)
at ZoneDelegate.prototype.invokeTask (http://localhost:8186/libs/angular2-polyfills.js:380:18)
at Zone.prototype.runTask (http://localhost:8186/libs/angular2-polyfills.js:282:22)"
}
greetings Damien
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
Special character for Rx? | Microsoft Office Forums
I'd like to print the Rx symbol (Capital R with a line thru it like pharmacies use). Couldn't find it in the standard...
Read more >Special character for Rx? - PC Review
I'd like to print the Rx symbol (Capital R with a line thru it like pharmacies use). Couldn't find it in the standard...
Read more >java - Problems with special characters in Microsoft Excel
When I'm opening the file in a text editor, the special characters are displayed correctly. However when I open them in Microsoft Excel,...
Read more >Special Characters Problem - Webkul
Special characters are important to our web. We used them in different ways but If our webpage is not supporting Special characters or...
Read more >Can I include special characters in my install or workspace ...
If you put special characters in your install or workspace path e2 studio and SSP may not be able to find your project...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hi @robisim74
When I save the files in UTF-8, everything works fine. Thanks. I’ll do a blog about this, thanks again for your help.
Greetings Damien
On Windows the encoding is always a problem … Good luck for your project.