getCharsetInt() public static method

Only default character encodings from J2SE are supported. From http://www.iana.org/assignments/character-sets and http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html
public static getCharsetInt ( $cs )
示例#1
0
文件: Encoder.php 项目: horde/horde
 /**
  * @throws Horde_Xml_Wbxml_Exception
  */
 public function writeCharset($charset)
 {
     $cs = Horde_Xml_Wbxml::getCharsetInt($charset);
     if ($cs == 0) {
         throw new Horde_Xml_Wbxml_Exception('Unsupported Charset: ' . $charset);
     } else {
         Horde_Xml_Wbxml::intToMBUInt32($this->_output, $cs);
     }
 }