UTF-8

出自ProgWiki
跳至導覽 跳至搜尋

UTF-8,或稱為CP65001,參照:『維基百科~UTF-8

技術文件

  • RFC 3629 - UTF-8, a transformation format of ISO 10646

應用

C++

C#

HTML

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>

Java

import java.nio.charset.Charset;
 
private static final Charset UTF_8 = Charset.forName("UTF-8");
private static final Charset ISO = Charset.forName("ISO-8859-1");
 
String text = "This is an example é";
byte[] byteText = text.getBytes(UTF_8);
 
//To get original string from byte.
String originalString= new String(byteText, UTF_8);

JavaScript

PHP

VB6

XML

<?xml version="1.0" encoding="utf8"?>

相關工具