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

Problem with accents in Spanish translation #21

Closed
Rodemfr opened this issue Apr 20, 2023 · 2 comments
Closed

Problem with accents in Spanish translation #21

Rodemfr opened this issue Apr 20, 2023 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Rodemfr
Copy link
Owner

Rodemfr commented Apr 20, 2023

See https://www.cruisersforum.com/forums/f134/migrating-meteovache_pi-to-managed-plugin-scheme-274843-4.html#post3768429
for more details.

It looks like a mismatch between the charset encoding of the translation and the actual charset encoding of the font.

@Rodemfr
Copy link
Owner Author

Rodemfr commented Apr 20, 2023

The problem is likely linked to the UTF-8 encoding of day name translation : During drawing of the weather report, day names are cut to only keep the two first char of the string but in UTF-8 the two first characters can be encoded on more than two char, leading to incorrect string.

@Rodemfr Rodemfr self-assigned this Apr 20, 2023
@Rodemfr Rodemfr added the bug Something isn't working label Apr 20, 2023
@Rodemfr Rodemfr added this to the V1.0 milestone Apr 20, 2023
@Rodemfr
Copy link
Owner Author

Rodemfr commented May 31, 2023

Problem solved by using wxString::substr function which takes care of character encoding.

@Rodemfr Rodemfr closed this as completed May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant