Skip to content
Back to skills

Charset

ASecurity

Use when reviewing templates, rendered HTML, or shared components related to Declare UTF-8 character encoding. Validate the final browser-facing markup, not just the source framework abstraction.

  • 74,358 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 5, 2026
developmentgofrontendsecurity

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 5, 2026

npx -y skills add thedaviddias/Front-End-Checklist --skill charset --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Charset?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Charset
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/thedaviddias-charset/badge)](https://www.skillsdirectory.com/skills/thedaviddias-charset)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: charset
description: "Use when reviewing templates, rendered HTML, or shared components related to Declare UTF-8 character encoding. Validate the final browser-facing markup, not just the source framework abstraction."
metadata:
  category: html
  priority: critical
  difficulty: beginner
  estimatedTime: "5"
  source: frontendchecklist.io
  url: https://frontendchecklist.io/rules/html/charset
---

# Declare UTF-8 character encoding

Missing or incorrect charset causes mojibake (garbled text), broken special characters, and security vulnerabilities from character encoding attacks.

## Quick Reference

- Add `<meta charset="UTF-8">` as the first element in <head>
- Must appear within the first 1024 bytes of the document
- UTF-8 supports all languages and special characters

## Check

Verify that this HTML document declares UTF-8 character encoding in the head section and that it's positioned early in the document.

## Fix

Add <meta charset="UTF-8"> as the first meta tag in the head section of the HTML document.

## Explain

Explain why UTF-8 character encoding is essential for international content support and preventing character display issues.

## Code Review

Review templates, server-rendered HTML, and shared components that output markup related to Declare UTF-8 character encoding. Flag exact elements, attributes, and routes where the rendered HTML violates the rule.

---

For full implementation details, code examples, and framework-specific guidance,
see `references/rule.md`.

Rule page: https://frontendchecklist.io/rules/html/charset

Files in this skill

  • SKILL.md1.5 KB
  • references/rule.md2.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…