HTML Charset - W3Schools

文章推薦指數: 80 %
投票人數:10人

The UTF-8 Character Set ... UTF-8 is identical to ASCII for the values from 0 to 127. UTF-8 does not use the values from 128 to 159. UTF-8 is identical to both ... 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 HTMLTutorial HTMLHOME HTMLIntroduction HTMLEditors HTMLBasic HTMLElements HTMLAttributes HTMLHeadings HTMLParagraphs HTMLStyles HTMLFormatting HTMLQuotations HTMLComments HTMLColors Colors RGB HEX HSL HTMLCSS HTMLLinks Links LinkColors LinkBookmarks HTMLImages Images ImageMap BackgroundImages ThePictureElement HTMLFavicon HTMLTables HTMLTables TableBorders TableSizes TableHeaders Padding&Spacing Colspan&Rowspan TableStyling TableColgroup HTMLLists Lists UnorderedLists OrderedLists OtherLists HTMLBlock&Inline HTMLClasses HTMLId HTMLIframes HTMLJavaScript HTMLFilePaths HTMLHead HTMLLayout HTMLResponsive HTMLComputercode HTMLSemantics HTMLStyleGuide HTMLEntities HTMLSymbols HTMLEmojis HTMLCharset HTMLURLEncode HTMLvs.XHTML HTMLForms HTMLForms HTMLFormAttributes HTMLFormElements HTMLInputTypes HTMLInputAttributes HTMLInputFormAttributes HTMLGraphics HTMLCanvas HTMLSVG HTMLMedia HTMLMedia HTMLVideo HTMLAudio HTMLPlug-ins HTMLYouTube HTMLAPIs HTMLGeolocation HTMLDrag/Drop HTMLWebStorage HTMLWebWorkers HTMLSSE HTMLExamples HTMLExamples HTMLQuiz HTMLExercises HTMLCertificate HTMLSummary HTMLAccessibility HTMLReferences HTMLTagList HTMLAttributes HTMLGlobalAttributes HTMLBrowserSupport HTMLEvents HTMLColors HTMLCanvas HTMLAudio/Video HTMLDoctypes HTMLCharacterSets HTMLURLEncode HTMLLangCodes HTTPMessages HTTPMethods PXtoEMConverter KeyboardShortcuts HTMLEncoding(CharacterSets) ❮Previous Next❯ TodisplayanHTMLpagecorrectly,awebbrowsermustknow whichcharactersettouse. FromASCIItoUTF-8 ASCIIwasthefirstcharacterencodingstandard.ASCIIdefined128differentcharactersthatcouldbeusedontheinternet:numbers(0-9),Englishletters(A-Z),andsomespecial characterslike!$+-()@<>. ISO-8859-1wasthedefaultcharactersetforHTML4.Thischaracterset supported256differentcharactercodes.HTML4alsosupportedUTF-8. ANSI(Windows-1252)wastheoriginalWindowscharacterset.ANSIisidentical toISO-8859-1,exceptthatANSIhas32extracharacters. TheHTML5specificationencourageswebdeveloperstousetheUTF-8character set,whichcoversalmostallofthe charactersandsymbolsintheworld! TheHTMLcharsetAttribute TodisplayanHTMLpagecorrectly,awebbrowsermustknowthecharactersetusedinthepage. Thisisspecifiedinthetag: DifferencesBetweenCharacterSets Thefollowingtabledisplaysthedifferencesbetweenthecharactersetsdescribedabove: Numb ASCII ANSI 8859 UTF-8 Description 32space 33!!!!exclamationmark 34""""quotationmark 35####numbersign 36$$$$dollarsign 37%%%%percentsign 38&&&&ampersand 39''''apostrophe 40((((leftparenthesis 41))))rightparenthesis 42****asterisk 43++++plussign 44,,,,comma 45----hyphen-minus 46....fullstop 47////solidus 480000digitzero 491111digitone 502222digittwo 513333digitthree 524444digitfour 535555digitfive 546666digitsix 557777digitseven 568888digiteight 579999digitnine 58::::colon 59;;;;semicolon 60<<<>>>greater-thansign 63????questionmark 64@@@@commercialat 65AAAALatincapitalletterA 66BBBBLatincapitalletterB 67CCCCLatincapitalletterC 68DDDDLatincapitalletterD 69EEEELatincapitalletterE 70FFFFLatincapitalletterF 71GGGGLatincapitalletterG 72HHHHLatincapitalletterH 73IIIILatincapitalletterI 74JJJJLatincapitalletterJ 75KKKKLatincapitalletterK 76LLLLLatincapitalletterL 77MMMMLatincapitalletterM 78NNNNLatincapitalletterN 79OOOOLatincapitalletterO 80PPPPLatincapitalletterP 81QQQQLatincapitalletterQ 82RRRRLatincapitalletterR 83SSSSLatincapitalletterS 84TTTTLatincapitalletterT 85UUUULatincapitalletterU 86VVVVLatincapitalletterV 87WWWWLatincapitalletterW 88XXXXLatincapitalletterX 89YYYYLatincapitalletterY 90ZZZZLatincapitalletterZ 91[[[[leftsquarebracket 92\\\\reversesolidus 93]]]]rightsquarebracket 94^^^^circumflexaccent 95____lowline 96````graveaccent 97aaaaLatinsmalllettera 98bbbbLatinsmallletterb 99ccccLatinsmallletterc 100ddddLatinsmallletterd 101eeeeLatinsmalllettere 102ffffLatinsmallletterf 103ggggLatinsmallletterg 104hhhhLatinsmallletterh 105iiiiLatinsmallletteri 106jjjjLatinsmallletterj 107kkkkLatinsmallletterk 108llllLatinsmallletterl 109mmmmLatinsmallletterm 110nnnnLatinsmalllettern 111ooooLatinsmalllettero 112ppppLatinsmallletterp 113qqqqLatinsmallletterq 114rrrrLatinsmallletterr 115ssssLatinsmallletters 116ttttLatinsmalllettert 117uuuuLatinsmallletteru 118vvvvLatinsmallletterv 119wwwwLatinsmallletterw 120xxxxLatinsmallletterx 121yyyyLatinsmalllettery 122zzzzLatinsmallletterz 123{{{{leftcurlybracket 124||||verticalline 125}}}}rightcurlybracket 126~~~~tilde 127DEL     128 €  eurosign 129 NOTUSED 130 ‚  singlelow-9quotationmark 131 ƒ  Latinsmallletterfwithhook 132 „  doublelow-9quotationmark 133 …  horizontalellipsis 134 †  dagger 135 ‡  doubledagger 136 ˆ  modifierlettercircumflexaccent 137 ‰  permillesign 138 Š  LatincapitalletterSwithcaron 139 ‹  singleleft-pointinganglequotationmark 140 Œ  LatincapitalligatureOE 141 NOTUSED 142 Ž  LatincapitalletterZwithcaron 143 NOTUSED 144 NOTUSED 145 ‘  leftsinglequotationmark 146 ’  rightsinglequotationmark 147 “  leftdoublequotationmark 148 ”  rightdoublequotationmark 149 •  bullet 150 –  endash 151 —  emdash 152 ˜  smalltilde 153 ™  trademarksign 154 š  Latinsmallletterswithcaron 155 ›  singleright-pointinganglequotationmark 156 œ  Latinsmallligatureoe 157 NOTUSED 158 ž  Latinsmallletterzwithcaron 159 Ÿ  LatincapitalletterYwithdiaeresis 160    no-breakspace 161 ¡¡¡invertedexclamationmark 162 ¢¢¢centsign 163 £££poundsign 164 ¤¤¤currencysign 165 ¥¥¥yensign 166 ¦¦¦brokenbar 167 §§§sectionsign 168 ¨¨¨diaeresis 169 ©©©copyrightsign 170 ªªªfeminineordinalindicator 171 «««left-pointingdoubleanglequotationmark 172 ¬¬¬notsign 173 ­­­softhyphen 174 ®®®registeredsign 175 ¯¯¯macron 176 °°°degreesign 177 ±±±plus-minussign 178 ²²²superscripttwo 179 ³³³superscriptthree 180 ´´´acuteaccent 181 µµµmicrosign 182 ¶¶¶pilcrowsign 183 ···middledot 184 ¸¸¸cedilla 185 ¹¹¹superscriptone 186 ºººmasculineordinalindicator 187 »»»right-pointingdoubleanglequotationmark 188 ¼¼¼vulgarfractiononequarter 189 ½½½vulgarfractiononehalf 190 ¾¾¾vulgarfractionthreequarters 191 ¿¿¿invertedquestionmark 192 ÀÀÀLatincapitalletterAwithgrave 193 ÁÁÁLatincapitalletterAwithacute 194 ÂÂÂLatincapitalletterAwithcircumflex 195 ÃÃÃLatincapitalletterAwithtilde 196 ÄÄÄLatincapitalletterAwithdiaeresis 197 ÅÅÅLatincapitalletterAwithringabove 198 ÆÆÆLatincapitalletterAE 199 ÇÇÇLatincapitalletterCwithcedilla 200 ÈÈÈLatincapitalletterEwithgrave 201 ÉÉÉLatincapitalletterEwithacute 202 ÊÊÊLatincapitalletterEwithcircumflex 203 ËËËLatincapitalletterEwithdiaeresis 204 ÌÌÌLatincapitalletterIwithgrave 205 ÍÍÍLatincapitalletterIwithacute 206 ÎÎÎLatincapitalletterIwithcircumflex 207 ÏÏÏLatincapitalletterIwithdiaeresis 208 ÐÐÐLatincapitalletterEth 209 ÑÑÑLatincapitalletterNwithtilde 210 ÒÒÒLatincapitalletterOwithgrave 211 ÓÓÓLatincapitalletterOwithacute 212 ÔÔÔLatincapitalletterOwithcircumflex 213 ÕÕÕLatincapitalletterOwithtilde 214 ÖÖÖLatincapitalletterOwithdiaeresis 215 ×××multiplicationsign 216 ØØØLatincapitalletterOwithstroke 217 ÙÙÙLatincapitalletterUwithgrave 218 ÚÚÚLatincapitalletterUwithacute 219 ÛÛÛLatincapitalletterUwithcircumflex 220 ÜÜÜLatincapitalletterUwithdiaeresis 221 ÝÝÝLatincapitalletterYwithacute 222 ÞÞÞLatincapitalletterThorn 223 ßßßLatinsmalllettersharps 224 àààLatinsmallletterawithgrave 225 áááLatinsmallletterawithacute 226 âââLatinsmallletterawithcircumflex 227 ãããLatinsmallletterawithtilde 228 äääLatinsmallletterawithdiaeresis 229 åååLatinsmallletterawithringabove 230 æææLatinsmallletterae 231 çççLatinsmalllettercwithcedilla 232 èèèLatinsmallletterewithgrave 233 éééLatinsmallletterewithacute 234 êêêLatinsmallletterewithcircumflex 235 ëëëLatinsmallletterewithdiaeresis 236 ìììLatinsmallletteriwithgrave 237 íííLatinsmallletteriwithacute 238 îîîLatinsmallletteriwithcircumflex 239 ïïïLatinsmallletteriwithdiaeresis 240 ðððLatinsmalllettereth 241 ñññLatinsmallletternwithtilde 242 òòòLatinsmallletterowithgrave 243 óóóLatinsmallletterowithacute 244 ôôôLatinsmallletterowithcircumflex 245 õõõLatinsmallletterowithtilde 246 öööLatinsmallletterowithdiaeresis 247 ÷÷÷divisionsign 248 øøøLatinsmallletterowithstroke 249 ùùùLatinsmallletteruwithgrave 250 úúúLatinsmallletteruwithacute 251 ûûûLatinsmallletterwithcircumflex 252 üüüLatinsmallletteruwithdiaeresis 253 ýýýLatinsmallletterywithacute 254 þþþLatinsmallletterthorn 255 ÿÿÿLatinsmallletterywithdiaeresis TheASCIICharacterSet ASCIIusesthevaluesfrom0to31(and127)forcontrolcharacters. ASCIIusesthevaluesfrom32to126forletters,digits,andsymbols. ASCIIdoesnotusethevaluesfrom128to255. TheANSICharacterSet(Windows-1252) ANSIisidenticaltoASCIIforthevaluesfrom0to127. ANSIhasaproprietarysetofcharactersforthevaluesfrom128to159. ANSIisidenticaltoUTF-8forthevaluesfrom160to255. TheISO-8859-1CharacterSet ISO-8859-1isidenticaltoASCIIforthevaluesfrom0to127. ISO-8859-1doesnotusethevaluesfrom128to159. ISO-8859-1isidenticaltoUTF-8forthevaluesfrom160to255. TheUTF-8CharacterSet UTF-8isidenticaltoASCIIforthevaluesfrom0to127. UTF-8doesnotusethevaluesfrom128to159.  UTF-8isidenticaltobothANSIand8859-1forthevaluesfrom160to255. UTF-8continuesfromthevalue256withmorethan10000different characters. Foracloserlook,studyourCompleteHTMLCharacterSetReference. ❮Previous Next❯ NEW WejustlaunchedW3Schoolsvideos Explorenow COLORPICKER Getcertifiedbycompletingacoursetoday! w3schoolsCERTIFIED.2022 Getstarted CODEGAME PlayGame



請為這篇文章評分?