What is UTF-8? UTF-8 Character Encoding Tutorial
文章推薦指數: 80 %
UTF-8 is a character encoding system. It lets you represent characters as ASCII text, while still allowing for international characters, ... Search Submityoursearchquery Forum Donate QuincyLarson UTF-8isacharacterencodingsystem.ItletsyourepresentcharactersasASCIItext,whilestillallowingforinternationalcharacters,suchasChinesecharacters.Asofthemid2020s,UTF-8isoneofthemostpopularencodingsystems.TostartusingUTF-8,youwillwanttofirstfamiliarizeyourselfwiththethebasicASCIIcharacterset.WhatistheASCIICharacterSet?ASCIIuses7-bitcodepointstorepresent128differentcharacters.Thesecodepointsaredividedinto95printablecharacters,whichincludethe26lettersoftheEnglishalphabet(AtoZ,bothupper-andlower-case),the10digits(0through9),andavarietyofpunctuationandothersymbols.Therearealso33non-printablecharacters,whichincludecontrolcharacterslikecarriagereturnandlinefeed,aswellasvariousothercharactersthatareusedforthingslikeformattingtext.UTF-8VSASCII–What'stheDifference?UTF-8extendstheASCIIcharactersettouse8-bitcodepoints,whichallowsforupto256differentcharacters.ThismeansthatUTF-8canrepresentalloftheprintableASCIIcharacters,aswellasthenon-printablecharacters.UTF-8alsoincludesavarietyofadditionalinternationalcharacters,suchasChinesecharactersandArabiccharacters.HowtoUseUTF-8inYourWebpages–HTMLUTF-8ExampleAndnowtheeasypart.Youdon'tactuallyneedtoknowhowitworks(thoughI'lltellyouinamoment.)YoucanconfigureUTF-8CharacterEncodinginyourHTMLcodewithasinglelineofHTMLlocatedinthe
sectionofyourcode:延伸文章資訊
- 1UTF8Encoding 類別(System.Text) - Microsoft Learn
下列範例會使用UTF8Encoding 物件來編碼Unicode 字元的字串,並將其儲存在位元組陣列中。 Unicode 字串包含兩個字元:Pi (U+03A0) 和Sigma (U+03A3)...
- 2Encoding.UTF8 屬性(System.Text) - Microsoft Learn
WriteLine(); // Display the number of bytes required to encode the array. int reqBytes = utf8.Get...
- 3Day27 Python 基礎- 字符轉編碼操作 - iT 邦幫忙
coding:utf-8 -*- import sys print(sys.getdefaultencoding()) # 打印出目前系統字符編碼s = '你好' s_to_unicode = ...
- 4What 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...
- 5UTF-8 encoder/decoder
About this tool. This tool uses utf8.js to UTF-8-encode any string you enter in the 'decoded' fie...