Esempio n. 1
0
 /**
  * @throws UnsupportedEncodingException
  * @param String $encoding
  */
 public function __construct($encoding = 'UTF-8')
 {
     parent::__construct($encoding);
     mb_internal_encoding($encoding);
 }
Esempio n. 2
0
 protected function __construct()
 {
     parent::__construct(self::NAME);
 }
Esempio n. 3
0
 /**
  * @throws UnsupportedEncodingException
  * @param String $encoding
  */
 public function __construct($encoding = 'UTF-8')
 {
     parent::__construct($encoding);
     iconv_set_encoding("internal_encoding", $encoding);
 }
Esempio n. 4
0
 public function __construct($sInputString, $sEncoding = null)
 {
     parent::__construct($sInputString, $sEncoding);
     $this->_oDomString = new \DomDocument();
     $this->_oDomString->loadXML('<div>' . $this->_sString . '</div>');
 }
Esempio n. 5
0
 /**
  * Constructeur.
  * 
  * @see \Aouka\String\Encoding::_construct
  * @param string $sInputString Chaîne de caractères.
  * @param string $sEncoding Type d'encodage à utiliser.
  */
 public function __construct($sInputString, $sEncoding = null)
 {
     parent::__construct($sInputString, $sEncoding);
 }