mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1781] Change default charset UTF-8 #1499
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#1499
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mylms on GitHub (Nov 19, 2024).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1781
Is it possible change default charset from UTF-8 to ISO-8859-2? I use this encodig in VS Code (because encoding chars for external display).
I would like to get some texts from WiFi portal to ESP32 and there is some problems with decoding letters á, č, ď, é, ě, í, ň, ó, ř, š, ť, ú, ů, ý, ž, Á, Č, Ď, É, Ě, Í, Ň, Ó, Ř, Š, Ť, Ú, Ů, Ý, Ž
ThankYou
@tablatronix commented on GitHub (Nov 20, 2024):
You mean the web browser? You can add a header
@mylms commented on GitHub (Nov 20, 2024):
Thank you for your advice. Yes, I mean in web browser. I try to add
wm.setCustomHeadElement("<meta charset='ISO-8859-2'>");But anfortunatelly no change. Diacritic chars not working.
@mylms commented on GitHub (Nov 20, 2024):
Here is code of webpage. I can't paste it directly.

If I change charset directly in "wm_consts_en.h" everything works properly.
@assanges commented on GitHub (Jan 22, 2025):
Are you modifying the
wm_strings_en.hfile?Not sure if this will work but it's worth a try since I don't have an ESP board beside me.
Try to modify Line 28 in the i18n file (i.e.,
wm_string_en.h:28or any self-created i18n file),the charset in the HTML file was a hardcoded string, adding a custom HTML Head element would not work as you think.