[GH-ISSUE #74] No UTF-8 in "Current weather" #582

Closed
opened 2026-03-20 18:10:41 +01:00 by sascha_hemi · 6 comments
Owner

Originally created by @DL5SMB on GitHub (Jun 26, 2023).
Original GitHub issue: https://github.com/OpenEPaperLink/OpenEPaperLink/issues/74

I noticed that in "Current Weather" non-ASCII characters in city names disappear.
Cities like "Köln" and "Tübingen" are being found and weather data is shown, but on the tag they appear as "Kln" and "Tbingen".

I also found that if a city name is entered with the first letter in lowercase like "stuttgart", it is also shown in lowercase on the tag. I assumed that city data would either be matched against an official list or that the first letter was being forced in uppercase.

Originally created by @DL5SMB on GitHub (Jun 26, 2023). Original GitHub issue: https://github.com/OpenEPaperLink/OpenEPaperLink/issues/74 I noticed that in "Current Weather" non-ASCII characters in city names disappear. Cities like "Köln" and "Tübingen" are being found and weather data is shown, but on the tag they appear as "Kln" and "Tbingen". I also found that if a city name is entered with the first letter in lowercase like "stuttgart", it is also shown in lowercase on the tag. I assumed that city data would either be matched against an official list or that the first letter was being forced in uppercase.
sascha_hemi added the bug label 2026-03-20 18:10:41 +01:00
Author
Owner

@nlimper commented on GitHub (Jun 26, 2023):

Did you use the latest font files in /fonts? The accented characters were added last month. If you’re still missing a character, I can add it.

Displayed upper/lower case is by design, it’s just displayed exactly the way you enter it. if you want first upper case, just enter it like that. Remember, it’s running on a 2,5 euro microcontroller, and aimed to be used by electronics hobbyists. I did not have complete foolproofness in mind when developing it. 😃 And we’re very low on flash memory space, so parameters are not 100% checked.

<!-- gh-comment-id:1607265908 --> @nlimper commented on GitHub (Jun 26, 2023): Did you use the latest font files in /fonts? The accented characters were added last month. If you’re still missing a character, I can add it. Displayed upper/lower case is by design, it’s just displayed exactly the way you enter it. if you want first upper case, just enter it like that. Remember, it’s running on a 2,5 euro microcontroller, and aimed to be used by electronics hobbyists. I did not have complete foolproofness in mind when developing it. 😃 And we’re very low on flash memory space, so parameters are not 100% checked.
Author
Owner

@DL5SMB commented on GitHub (Jun 26, 2023):

I git pulled the latest version on friday I think. So I am maybe 1 or 2 commits behind - but as the correct characters are shown in RSS feeds, I think its specific with the code of the weather function.

Yep, I got that. It's no complaint, it was just an observation and I was not sure if that was the supposed behaviour.

<!-- gh-comment-id:1607297285 --> @DL5SMB commented on GitHub (Jun 26, 2023): I git pulled the latest version on friday I think. So I am maybe 1 or 2 commits behind - but as the correct characters are shown in RSS feeds, I think its specific with the code of the weather function. Yep, I got that. It's no complaint, it was just an observation and I was not sure if that was the supposed behaviour.
Author
Owner

@nlimper commented on GitHub (Jun 26, 2023):

By the way, proper casing of place names is not a matter of converting everything to lower case, and make the first character upper case. Think of

  • ‘s-Hertogenbosch
  • Den Haag
  • Bad Schandau
  • Bad Neustadt a. d. Saale

On which size display are the characters lacking? (It’s not a utf8 problem, but if any, it’s the lack of rendering specific characters in specific fonts)

<!-- gh-comment-id:1607301707 --> @nlimper commented on GitHub (Jun 26, 2023): By the way, proper casing of place names is not a matter of converting everything to lower case, and make the first character upper case. Think of - ‘s-Hertogenbosch - Den Haag - Bad Schandau - Bad Neustadt a. d. Saale On which size display are the characters lacking? (It’s not a utf8 problem, but if any, it’s the lack of rendering specific characters in specific fonts)
Author
Owner

@DL5SMB commented on GitHub (Jun 26, 2023):

I'm with you - that was just my first or better second thought. As I mentioned before, I assumed the entered data was matched with a database to get the coordinates of a location. So I thought there should be a field with the offical name. Not important.

I only tried the 1.54 display yesterday, assuming it was missing everywhere. But I can also test 2.9 tags tonight.

<!-- gh-comment-id:1607378405 --> @DL5SMB commented on GitHub (Jun 26, 2023): I'm with you - that was just my first or better second thought. As I mentioned before, I assumed the entered data was matched with a database to get the coordinates of a location. So I thought there should be a field with the offical name. Not important. I only tried the 1.54 display yesterday, assuming it was missing everywhere. But I can also test 2.9 tags tonight.
Author
Owner

@DL5SMB commented on GitHub (Jun 26, 2023):

Okay, so I updated my SimpleAP to the latest version and retried:
UTF-8/ Non-ASCI characters in city names do work on 2.9 inch Tags, but not on 1.54 inch tags.
I can also test segmented displays, but first I need to built a JIG.
20230626_222017

<!-- gh-comment-id:1608191137 --> @DL5SMB commented on GitHub (Jun 26, 2023): Okay, so I updated my SimpleAP to the latest version and retried: UTF-8/ Non-ASCI characters in city names do work on 2.9 inch Tags, but not on 1.54 inch tags. I can also test segmented displays, but first I need to built a JIG. ![20230626_222017](https://github.com/jjwbruijn/OpenEPaperLink/assets/29584431/ebe6d003-e9b9-4da9-891f-99ac9872822d)
Author
Owner

@nlimper commented on GitHub (Jun 27, 2023):

Fixed in commit 5376f2540e
Segmented displays can hardly display characters. At no point the location or any other user input is displayed, so no need to test.

<!-- gh-comment-id:1609384651 --> @nlimper commented on GitHub (Jun 27, 2023): Fixed in commit https://github.com/jjwbruijn/OpenEPaperLink/commit/5376f2540e31b89134efadd3f0b1a829a176ebf3 Segmented displays can hardly display characters. At no point the location or any other user input is displayed, so no need to test.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/OpenEPaperLink#582