question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

special chars Rx problem

See original GitHub issue

Hi, 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:closed
  • Created 7 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
damienbodcommented, Apr 27, 2016

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

0reactions
robisim74commented, Apr 27, 2016

On Windows the encoding is always a problem … Good luck for your project.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found