HTML Unicode (UTF-8) Reference - W3Schools
文章推薦指數: 80 %
Unicode is a character set. UTF-8 is encoding. Unicode is a list of characters with unique decimal numbers (code points). A = 65, B = 66, ...
Tutorials
References
Exercises
Videos
Menu
Login
FreeWebsite
GetCertified
Pro
HTML
CSS
JAVASCRIPT
SQL
PYTHON
JAVA
PHP
BOOTSTRAP
HOWTO
W3.CSS
C
C++
C#
REACT
R
JQUERY
DJANGO
TYPESCRIPT
NODEJS
MYSQL
Darkmode
Darkcode
×
Tutorials
HTMLandCSS
LearnHTML
LearnCSS
LearnRWD
LearnBootstrap
LearnW3.CSS
LearnColors
LearnIcons
LearnGraphics
LearnSVG
LearnCanvas
LearnHowTo
LearnSass
DataAnalytics
LearnAI
LearnMachineLearning
LearnDataScience
LearnNumPy
LearnPandas
LearnSciPy
LearnMatplotlib
LearnStatistics
LearnExcel
XMLTutorials
LearnXML
LearnXMLAJAX
LearnXMLDOM
LearnXMLDTD
LearnXMLSchema
LearnXSLT
LearnXPath
LearnXQuery
JavaScript
LearnJavaScript
LearnjQuery
LearnReact
LearnAngularJS
LearnJSON
LearnAJAX
LearnAppML
LearnW3.JS
Programming
LearnPython
LearnJava
LearnC
LearnC++
LearnC#
LearnR
LearnKotlin
LearnGo
LearnDjango
LearnTypeScript
ServerSide
LearnSQL
LearnMySQL
LearnPHP
LearnASP
LearnNode.js
LearnRaspberryPi
LearnGit
LearnMongoDB
LearnAWSCloud
WebBuilding
CreateaWebsiteNEW
WhereToStart
WebTemplates
WebStatistics
WebCertificates
WebDevelopment
CodeEditor
TestYourTypingSpeed
PlayaCodeGame
CyberSecurity
Accessibility
DataAnalytics
LearnAI
LearnMachineLearning
LearnDataScience
LearnNumPy
LearnPandas
LearnSciPy
LearnMatplotlib
LearnStatistics
LearnExcel
LearnGoogleSheets
XMLTutorials
LearnXML
LearnXMLAJAX
LearnXMLDOM
LearnXMLDTD
LearnXMLSchema
LearnXSLT
LearnXPath
LearnXQuery
×
References
HTML
HTMLTagReference
HTMLBrowserSupport
HTMLEventReference
HTMLColorReference
HTMLAttributeReference
HTMLCanvasReference
HTMLSVGReference
GoogleMapsReference
CSS
CSSReference
CSSBrowserSupport
CSSSelectorReference
Bootstrap3Reference
Bootstrap4Reference
W3.CSSReference
IconReference
SassReference
JavaScript
JavaScriptReference
HTMLDOMReference
jQueryReference
AngularJSReference
AppMLReference
W3.JSReference
Programming
PythonReference
JavaReference
ServerSide
SQLReference
MySQLReference
PHPReference
ASPReference
XML
XMLDOMReference
XMLHttpReference
XSLTReference
XMLSchemaReference
CharacterSets
HTMLCharacterSets
HTMLASCII
HTMLANSI
HTMLWindows-1252
HTMLISO-8859-1
HTMLSymbols
HTMLUTF-8
×
ExercisesandQuizzes
Exercises
HTMLExercises
CSSExercises
JavaScriptExercises
PythonExercises
SQLExercises
PHPExercises
JavaExercises
CExercises
C++Exercises
C#Exercises
jQueryExercises
React.jsExercises
MySQLExercises
Bootstrap5Exercises
Bootstrap4Exercises
Bootstrap3Exercises
NumPyExercises
PandasExercises
SciPyExercises
TypeScriptExercises
ExcelExercises
RExercises
GitExercises
KotlinExercises
GoExercises
MongoDBExercises
Quizzes
HTMLQuiz
CSSQuiz
JavaScriptQuiz
PythonQuiz
SQLQuiz
PHPQuiz
JavaQuiz
CQuiz
C++Quiz
C#Quiz
jQueryQuiz
React.jsQuiz
MySQLQuiz
Bootstrap5Quiz
Bootstrap4Quiz
Bootstrap3Quiz
NumPyQuiz
PandasQuiz
SciPyQuiz
TypeScriptQuiz
XMLQuiz
RQuiz
GitQuiz
KotlinQuiz
CyberSecurityQuiz
AccessibilityQuiz
Courses
HTMLCourse
CSSCourse
JavaScriptCourse
FrontEndCourse
PythonCourse
SQLCourse
PHPCourse
JavaCourse
C++Course
C#Course
jQueryCourse
React.jsCourse
Bootstrap4Course
Bootstrap3Course
NumPyCourse
PandasCourse
TypeScriptCourse
XMLCourse
RCourse
DataAnalyticsCourse
CyberSecurityCourse
AccessibilityCourse
Certificates
HTMLCertificate
CSSCertificate
JavaScriptCertificate
FrontEndCertificate
PythonCertificate
SQLCertificate
PHPCertificate
JavaCertificate
C++Certificate
C#Certificate
jQueryCertificate
React.jsCertificate
MySQLCertificate
Bootstrap5Certificate
Bootstrap4Certificate
Bootstrap3Certificate
TypeScriptCertificate
XMLCertificate
ExcelCertificate
DataScienceCertificate
CyberSecurityCertificate
AccessibilityCertificate
×
Tutorials
References
Exercises
GetCertified
Spaces
Videos
Shop
Pro
HTMLCharsets
HTMLCharsets
HTMLASCII
HTMLWIN-1252
HTMLISO-8859
HTMLSymbols
HTMLUTF-8
HTMLUTF-8
LatinBasic
LatinSupplement
LatinExtendedA
LatinExtendedB
ModifierLetters
DiacriticalMarks
GreekandCoptic
CyrillicBasic
CyrillicSupplement
HTMLSymbols
GeneralPunctuation
CurrencySymbols
LetterlikeSymbols
Arrows
MathOperators
BoxDrawings
BlockElements
GeometricShapes
MiscSymbols
Dingbats
Emoji
EmojiSmileys
EmojiSkinTones
HTMLEntities
HTML4Entities
HTML5EntitiesA
HTML5EntitiesB
HTML5EntitiesC
HTML5EntitiesD
HTML5EntitiesE
HTML5EntitiesF
HTML5EntitiesG
HTML5EntitiesH
HTML5EntitiesI
HTML5EntitiesJ
HTML5EntitiesK
HTML5EntitiesL
HTML5EntitiesM
HTML5EntitiesN
HTML5EntitiesO
HTML5EntitiesP
HTML5EntitiesQ
HTML5EntitiesR
HTML5EntitiesS
HTML5EntitiesT
HTML5EntitiesU
HTML5EntitiesV
HTML5EntitiesW
HTML5EntitiesX
HTML5EntitiesY
HTML5EntitiesZ
HTMLUnicode(UTF-8)Reference
❮Previous
Next❯
TheUnicodeConsortium
TheUnicodeConsortiumdevelopstheUnicodeStandard.
TheirgoalistoreplacetheexistingcharactersetswithitsstandardUnicode
TransformationFormat(UTF).
TheUnicodeStandardhasbecomeasuccessandisimplementedin
HTML,XML,Java,JavaScript,E-mail,ASP,PHP,etc.TheUnicodestandardisalso
supportedinmanyoperatingsystemsandallmodernbrowsers.
TheUnicodeConsortiumcooperateswiththeleadingstandardsdevelopment
organizations,likeISO,W3C,andECMA.
TheUnicodeCharacterSets
Unicodecanbeimplementedbydifferentcharactersets.Themostcommonlyused
encodingsareUTF-8andUTF-16:
Character-set
Description
UTF-8
AcharacterinUTF8canbefrom1to4byteslong.UTF-8canrepresentanycharacterintheUnicodestandard.UTF-8isbackwardscompatiblewithASCII.UTF-8isthepreferredencodingfore-mailandwebpages
UTF-16
16-bitUnicodeTransformationFormatisavariable-lengthcharacterencodingforUnicode,capableofencodingtheentireUnicoderepertoire.UTF-16isusedinmajoroperatingsystemsandenvironments,likeMicrosoftWindows,Javaand.NET.
Tip:
Thefirst128charactersofUnicode(whichcorrespondone-to-onewithASCII)are
encodedusingasingleoctetwiththesamebinaryvalueasASCII,makingvalid
ASCIItextvalidUTF-8-encodedUnicodeaswell.
HTML4supportsUTF-8.HTML5supports
bothUTF-8andUTF-16!
TheHTML5Standard:UnicodeUTF-8
BecausethecharactersetsinISO-8859were
limitedinsize,andnotcompatibleinmultilingualenvironments,the
UnicodeConsortiumdevelopedtheUnicodeStandard.
TheUnicodeStandardcovers(almost)allthecharacters,punctuations,andsymbolsinthe
world.
Unicodeenablesprocessing,storage,and
transportoftextindependentofplatformandlanguage.
ThedefaultcharacterencodinginHTML-5isUTF-8.
IfanHTML5webpageusesadifferentcharactersetthanUTF-8,itshouldbe
specifiedinthetaglike:
Example
延伸文章資訊
- 1Encoding.UTF8 屬性(System.Text) - Microsoft Learn
WriteLine(); // Display the number of bytes required to encode the array. int reqBytes = utf8.Get...
- 2UTF-8 - Wikipedia
UTF-8 is a variable-width character encoding used for electronic communication. Defined by the Un...
- 3What is UTF-8 Encoding? A Guide for Non-Programmers
UTF-8 is an encoding system for Unicode. It can translate any Unicode character to a matching uni...
- 4What is UTF-8? UTF-8 Character Encoding Tutorial
UTF-8 is a character encoding system. It lets you represent characters as ASCII text, while still...
- 5HTML Unicode (UTF-8) Reference - W3Schools
Unicode is a character set. UTF-8 is encoding. Unicode is a list of characters with unique decima...