class TexyUtf

UTF-8 helper.

Methods

__construct()

static class.

static 
toUtf($s, $encoding)

Converts from source encoding to UTF-8.

static 
utfTo($s, $encoding)

Converts from UTF-8 to dest encoding.

static 
strtolower($s)

StrToLower in UTF-8.

static 
utf2ascii($s)

Converts UTF-8 to ASCII.

static 
utf2html($s, $encoding)

Converts UTF-8 to dest encoding + html entities.

Details

at line 24
final __construct()

static class.

at line 33
static toUtf($s, $encoding)

Converts from source encoding to UTF-8.

Parameters

$s
$encoding

at line 42
static utfTo($s, $encoding)

Converts from UTF-8 to dest encoding.

Parameters

$s
$encoding

at line 51
static strtolower($s)

StrToLower in UTF-8.

Parameters

$s

at line 69
static utf2ascii($s)

Converts UTF-8 to ASCII.

iconv('UTF-8', 'ASCII//TRANSLIT', ...) has problem with glibc!

Parameters

$s

at line 88
static utf2html($s, $encoding)

Converts UTF-8 to dest encoding + html entities.

Parameters

$s
$encoding