Class: Encoding
Namespace: utils
Description
https://github.com/neitanod/forceutf8.
@todo Se for usar mesmo, usar o gerenciador de pacotes e manter os créditos
Methods
public static function toUTF8($text)
Parameters:
$text
public static function toWin1252($text, $option = self::WITHOUT_ICONV)
Parameters:
$text$option- Default:self::WITHOUT_ICONV
public static function toISO8859($text, $option = self::WITHOUT_ICONV)
Parameters:
$text$option- Default:self::WITHOUT_ICONV
public static function toLatin1($text, $option = self::WITHOUT_ICONV)
Parameters:
$text$option- Default:self::WITHOUT_ICONV
public static function fixUTF8($text, $option = self::WITHOUT_ICONV)
Parameters:
$text$option- Default:self::WITHOUT_ICONV
public static function UTF8FixWin1252Chars($text)
Parameters:
$text
public static function removeBOM($str = '')
Parameters:
$str- Default:''
public static function normalizeEncoding($encodingLabel)
Parameters:
$encodingLabel
public static function encode($encodingLabel, $text)
Parameters:
$encodingLabel$text