google / google/langextract

Browser may display garbled text when <meta charset> is not specified

Open
#234 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
38.6k
Forks
2.7k
Avg merge
3d 15h
Merged PRs (30d)
3

Description

When the tag does not explicitly specify the charset, the browser may fall back to a non-UTF-8 encoding depending on the operating system’s regional settings. This can cause text to be displayed as garbled characters.

Expected behavior:
The browser should consistently use UTF-8 encoding, even when the charset is not explicitly defined.

Suggested fix:
Ensure that the HTML includes to avoid encoding issues.

Befor
Image

After
Image

Contributor guide

Open the contributing guide

Research direction

Start by locating the HTML responsible for the shown before-and-after browser output and inspect whether its head includes a charset declaration. Add the UTF-8 declaration where appropriate, then verify that the affected text renders correctly in a browser; the issue does not name a specific file or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.