본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)75k · #2771

charset

하는 일

이 스킬은 HTML 페이지가 문서 상단 가까이에 문자 인코딩을 선언하는지 확인합니다. 어떤 언어의 텍스트든 올바르게 표시되기를 원하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓글자가 깨져서 악센트나 기호가 이상하게 보일 때.
  • ✓새 HTML 템플릿을 만들 때.
  • ✓페이지의 head 영역이 올바르게 설정되었는지 검토할 때.

스킬 링크

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/charset/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/charset/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“페이지 템플릿이 UTF-8을 앞부분에 선언해서 특수 문자가 올바르게 표시되는지 확인해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트가 페이지 head의 첫 번째 요소로 UTF-8로 설정된 meta charset 태그를 추가하며, 문서의 처음 1024바이트 안에 두도록 합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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

자주 묻는 질문

mojibake는 무엇인가요?

문자가 잘못된 인코딩으로 읽힐 때 나타나는 깨진 텍스트를 가리키는 말이라고 스킬은 설명합니다.

선언은 왜 앞부분에 있어야 하나요?

문서의 처음 1024바이트 안에 있어야 한다고 스킬은 설명합니다.

UTF-8은 모든 언어를 지원하나요?

네. 스킬은 UTF-8이 모든 언어와 특수 문자를 지원한다고 설명합니다.

상세 정보

작성자의 원본 설명

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.

repo: thedaviddias/Front-End-Checklist

인기도

GitHub 스타
75k
순위
#2771
라이선스
MIT
업데이트
2026. 10. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬