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

Handle localized text in UTF-8 format #2180

Closed
duard-sf opened this issue Nov 15, 2019 · 7 comments
Closed

Handle localized text in UTF-8 format #2180

duard-sf opened this issue Nov 15, 2019 · 7 comments
Assignees
Labels
Milestone

Comments

@duard-sf
Copy link

I have found that text containing accents (e.g. "é", "è", "ö") are transmitted as "�" from the server.
I have tried inspecting the source code, but I am unable to find anything useful.

Example:
nl.json:

{
  "Validation:PasswordLowerCase": "Eén kleine letter"
}

response from application-configuration endpoint:

{
  localization: {
    values: {
      <app resource>: {
        Validation:PasswordAlphanumeric: "E�n alfanumeriek teken"
      }
    }
  }
}

Perhaps during serialization/de-serialization the text is converted to ASCII? How could we specify that localized text should be handled as UTF-8? That being said, should at least UTF-8 not be the default, to be able to support the various characters used in different languages?

@pranavpatil19
Copy link

same problem in pt-BR version is weird #2092

@hikalkan hikalkan added this to the 1.1 milestone Nov 15, 2019
@hikalkan
Copy link
Member

Perhaps during serialization/de-serialization the text is converted to ASCII

ABP doesn't make something like that. However, we should test this and investigate the root problem. Thanks for reporting.

@lanpin
Copy link
Contributor

lanpin commented Nov 18, 2019

@duard-sf
Copy link
Author

ABP doesn't make something like that. However, we should test this and investigate the root problem. Thanks for reporting.

Yes, thank you. This will unfortunately will be quite a blocker, since the website needs to be translated to Dutch. Perhaps in the meantime we could try to use words that do not contain accents 😅

Related to this?
https://developercommunity.visualstudio.com/content/problem/757607/automatic-ansi-rc-file-conversion-to-utf8-not-want.html

I don't think so, since that solution seems to be to update Visual Studio? I am pretty much up to date with the latest version of VS 2019.

@maliming
Copy link
Member

@duard-sf I will check it out. : )

@maliming
Copy link
Member

maliming commented Nov 18, 2019

@duard-sf

You need to modify the encoding format of the json file (UTF-8)

image

image

@duard-sf
Copy link
Author

Ah, so simple, yet I haven't thought of it! Thanks all for the help, this resolves the issue 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants