This app runs inside the BotSurf browser. Don't have it yet? Get the app or extension now!

Universal Character Encoding Badge

Developer Tools · All
0 installs · Verified BotGentz app
Launch App
Opens in BotSurf — try it free, no account needed.
CategoryDeveloper Tools
PlatformAll
Pricing Free
Installs0
Download BotSurf to use — free
No account needed for free apps. Once BotSurf is open, find this app in Apps from the + menu.

About this app

WHAT IT DOES

Universal Character Encoding Badge helps you understand the character encoding of any webpage by analyzing meta tags, HTTP headers, and content patterns. The script displays a visible badge showing the detected encoding (UTF-8, ISO-8859-1, Windows-1252, GBK, Shift-JIS, etc.) with color-coded status indicators: green for correctly configured encoding, yellow for informational, and red for mismatches or errors. It identifies encoding mismatches between declared encoding (in meta tags) and actual content encoding, displaying clear warnings. Misencoded characters are highlighted with orange or red outlines, making them easy to spot. Byte sequence analysis shows the number and types of problematic characters. The script provides suggestions for fixing encoding issues, helping developers and site owners resolve character rendering problems.

WHERE IT RUNS

This script runs on every website (matching all URLs), detecting character encoding across the entire web. It works on any page with text content—blogs, documentation, multilingual sites, legacy pages, and more. The script automatically adapts to each page and handles both static and dynamically loaded content.

HOW TO USE

After installing through the BotGentz extension, simply navigate to any webpage. The script automatically detects the page's encoding and displays a badge with the encoding name and status. Use the configuration panel to customize your experience: toggle the encoding badge on or off, show or hide the encoding name, highlight misencoded characters, show or hide meta vs actual comparison, show or hide byte analysis, and enable automatic detection. The panel displays real-time statistics including the detected encoding, declared encoding, match status, and number of misencoded characters. Use the "Detect Encoding" button to manually rescan, or "Copy Encoding Info" to copy a detailed report to your clipboard.

MULTI-STRATEGY ENCODING DETECTION WITH CONTENT PATTERN ANALYSIS

This script implements a comprehensive encoding detection engine using multiple strategies. The first strategy checks the HTML meta charset tag and http-equiv Content-Type meta tags for declared encoding. The second strategy analyzes content patterns using Unicode range detection—identifying UTF-8 by the presence of multi-byte characters, Windows-1252 by detecting control characters in the 0x80-0x9F range, GBK by CJK ideograph presence without Japanese-specific scripts, and Shift-JIS by Japanese script detection. The third strategy uses byte sequence analysis to identify common misencoding patterns—replacement characters, invalid byte sequences, and character encoding conflicts. The mismatch detection compares declared versus actual encoding and generates warnings with specific recommendations for resolution.

THE PANEL

The configuration panel is fully draggable and remembers its position per-site using GM_setValue. It snaps to screen edges when dragged near them, collapses to a compact bubble when minimized, and supports Escape key for quick collapse. All settings—including badge visibility, encoding name display, misencoding highlighting, meta vs actual comparison, byte analysis, and auto-detection—are persisted across sessions.

PLEASE NOTE

This script requires the free BotGentz extension to run. The script runs on all websites and reads page content to analyze character encoding. It does not capture, store, or transmit any personal information. All analysis occurs locally in your browser. The encoding detection is based on statistical analysis and pattern matching and may not be 100% accurate for all pages, especially pages with mixed encoding or very short content. The suggestions provided are for informational purposes only and should be verified with the page's source code and server configuration. This tool is designed to help identify encoding issues and is not affiliated with or endorsed by any standards organization.

Similar Apps

Log in to BotGentz

Suggest an App

Tell us what you'd find useful — if we build it, we'll email you the moment it's ready.