Comments (4)
Thank you for your comment. I've allready posted a question to get the response I want:
https://stackoverflow.com/questions/71211404/utf-8-json-file-is-encoded-with-wrong-characters?noredirect=1#comment125889610_71211404
Till now no answer.
BTW: I'm using v2.19.0 (loader) and v2.7.2 (translate) on Visual Studio Development and IIS for hosting.
from angular-translate.
How is this possible after al these years.
Weil, that may be the hint this is perhaps not an issue of the library after all. As this is a client side framework, all charset/encoding relevant stuff is done within the client (aka browser). Any data received by XHR must be advertised correctly. Otherwise the client/browser/js may not handle strings correctly.
Yes, there are open issues with special Unicode characters in combination with interpolation/sanitization. But the standard characters of iso are working without issues for years. This includes german umlauts specifically.
If you still think there is an issue: please follow the recommendation and demonstrate the problem.
from angular-translate.
I can understand what you're saying. It should be the web.config to set the correct settings to receive the carachterset UTF-8. I thould I did it. Please take a look at the settinsg down below:
<system.web>
<customErrors mode="Off"></customErrors>
</system.web>
<system.webServer>
</customHeaders>
</httpProtocol>
<modules runAllManagedModulesForAllRequests="true">
</modules>
<staticContent>
<remove fileExtension=".txt" />
<mimeMap fileExtension=".txt" mimeType="text/plain; charset=utf-8" />
<remove fileExtension=".json" />
<mimeMap fileExtension=".json" mimeType="application/json; charset=utf-8" />
</staticContent>
from angular-translate.
Using the browser developer tools, you can maybe already check whether the resources are correct in the response or not.
Please understand we cannot give support for your backend configuration (quite not sure what you are using here). This may be better located at StackOverflow or something like that. Said this, you should also include the server/version and framework/version you are currently using, besides the relevant configuration for more context.
from angular-translate.
Related Issues (20)
- Use templated string as key HOT 1
- bower repo doesn't have latest release tag HOT 3
- De-cloaking broken in 2.18.2 HOT 4
- Default interpolationParams allows access to function constructor HOT 1
- translate dynamic content loaded with ajax HOT 1
- How to use UI router with angular translate? HOT 1
- [email protected] support HOT 5
- translate-sanitize-strategy HOT 4
- “SameSite” attribute warning HOT 1
- Not changing languages on ng-click
- Cookie “NG_TRANSLATE_LANG_KEY” will be soon rejected because it has the “SameSite” attribute set to “None” or an invalid value, without the “secure” attribute. HOT 9
- Two Languages at same time HOT 1
- IOS cordova When i upgrade the AngularJs to 1.8.2 the words will be missed which was been translated. HOT 1
- Using AngularJS Filters with Pluralization via MessageFormat HOT 1
- $translate.instant with angular expression HOT 1
- Unexpected behavior registering translations with .translations() and using an async loader with .forceAsyncReload(true) HOT 3
- Partial loading can fail silently without any hints HOT 1
- $translateStaticFilesLoader should behave gracefully when one of translations cannot be loaded HOT 1
- Team awareness required: Future project state HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-translate.