mbstring.ja-basic.html

来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 72 行

HTML
72
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Basics of Japanese multi-byte encodings</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="mbstring.encodings.html">Summaries of supported encodings</a></div> <div class="next" style="text-align: right; float: right;"><a href="mbstring.http.html">HTTP Input and Output</a></div> <div class="up"><a href="book.mbstring.html">Multibyte String</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div> <h1>Basics of Japanese multi-byte encodings</h1> <p class="para">  Japanese characters can only be represented by multibyte encodings,   and multiple encoding standards are used depending on platform and   text purpose. To make matters worse, these encoding standards   differ slightly from one another. In order to create a web   application which would be usable in a Japanese environment, a   developer has to keep these complexities in mind to ensure that the  proper character encodings are used. </p> <p class="para">  <ul class="itemizedlist">   <li class="listitem">    <span class="simpara">Storage for a character can be up to six bytes</span>   </li>   <li class="listitem">    <span class="simpara">     Most Japanese multibyte characters appear twice as wide as     single-byte characters. These characters are called      &quot;zen-kaku&quot; in Japanese, which means      &quot;full width&quot;. Other, narrower, characters are called      &quot;han-kaku&quot;, which means &quot;half width&quot;. The      graphical properties of the characters, however, depends upon      the type faces used to display them.    </span>   </li>   <li class="listitem">    <span class="simpara">     Some character encodings use shift(escape) sequences defined     in ISO-2022 to switch the code map of the specific code area     (<i>00h</i> to <i>7fh</i>).    </span>   </li>   <li class="listitem">    <span class="simpara">     ISO-2022-JP should be used in SMTP/NNTP, and headers and entities     should be reencoded as per RFC requirements. Although those are not     requisites, it&#039;s still a good idea because several popular user     agents cannot recognize any other encoding methods.    </span>   </li>   <li class="listitem">    <span class="simpara">     Web pages created for mobile phone services such as     <a href="http://www.nttdocomo.com/corebiz/services/imode/" class="link external">&raquo; i-mode</a>,     <a href="http://www.vodafone.jp/english/live/" class="link external">&raquo; Vodafone live!</a>, or <a href="http://www.au.kddi.com/english/ezweb/" class="link external">&raquo; EZweb</a>     are supposed to use Shift_JIS.    </span>   </li>  </ul> </p></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="mbstring.encodings.html">Summaries of supported encodings</a></div> <div class="next" style="text-align: right; float: right;"><a href="mbstring.http.html">HTTP Input and Output</a></div> <div class="up"><a href="book.mbstring.html">Multibyte String</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?