-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
special characters mis-displayed in fields #1139
Comments
In response to my email below, our user gave us this report.
I was able to recreate the problem. It happens when I rename a metadata file. Then I renamed it for "Teste acentuação" ( Accentuation test ). Right after it is renamed, we can see that the new name itself shows the problem we've been talking about. And then, the metadata itself shows the problem. We have to rename the metadatas for better organization, since we might fill a template more than once. Maybe if we could change its default name before saving, non-ASCII characters would display correctly. Here is the link for the template: https://cedar.metadatacenter.org/templates/edit/https://repo.metadatacenter.org/templates/13f72344-1f72-45fd-a13b-6dfc78ecbce5?folderId=https:%2F%2Frepo.metadatacenter.org%2Ffolders%2F795db003-ee91-4493-a25a-65c47e1d7ee3 Here is the link for the instance: https://cedar.metadatacenter.org/instances/edit/https://repo.metadatacenter.org/template-instances/ee0ecfdd-61c0-42d0-95d0-23de3ef4df0c?folderId=https:%2F%2Frepo.metadatacenter.org%2Ffolders%2F795db003-ee91-4493-a25a-65c47e1d7ee3 |
I've fixed this issue. In several places of our resource server and in the cedar core library, we were using EntityUtils.toString without specifying any encoding. In that case, the toString method uses the "ISO-8859-1" encoding by default. I've fixed it by specifying "UTF-8" as the desired encoding. |
This fix will be put on production with the next production release. |
In the instance https://cedar.metadatacenter.org/instances/edit/https://repo.metadatacenter.org/template-instances/bdb39dc3-00eb-4775-b893-87e1c97c924c the non-ASCII characters are not being displayed correctly. We are unable to duplicate this manually, and are collecting more information about the source of the characters.
The idioma is identified as http://id.loc.gov/vocabulary/iso639-1/pt
(See also metadatacenter/cedar-template-editor#875)
The text was updated successfully, but these errors were encountered: