Giter VIP home page Giter VIP logo

Comments (4)

Ton024 avatar Ton024 commented on June 7, 2024 1

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.

knalli avatar knalli commented on June 7, 2024

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.

Ton024 avatar Ton024 commented on June 7, 2024

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.

knalli avatar knalli commented on June 7, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.