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:延伸文章資訊
- 1Encoding.UTF8 屬性(System.Text) - Microsoft Learn
WriteLine(); // Display the number of bytes required to encode the array. int reqBytes = utf8.Get...
- 2What 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...
- 3UTF-8 encoder/decoder
About this tool. This tool uses utf8.js to UTF-8-encode any string you enter in the 'decoded' fie...
- 4UTF-8 - 维基百科,自由的百科全书
UTF-8(8-bit Unicode Transformation Format)是一種針對Unicode的可變長度字元編碼,也是一种前缀码。它可以用一至四个字节对Unicode字符集中的所有...
- 5Day27 Python 基礎- 字符轉編碼操作 - iT 邦幫忙
coding:utf-8 -*- import sys print(sys.getdefaultencoding()) # 打印出目前系統字符編碼s = '你好' s_to_unicode = ...