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 26
final __construct()

static class.

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

Converts from source encoding to UTF-8.

Parameters

$s
$encoding

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

Converts from UTF-8 to dest encoding.

Parameters

$s
$encoding

at line 53
static strtolower($s)

StrToLower in UTF-8.

Parameters

$s

at line 71
static utf2ascii($s)

Converts UTF-8 to ASCII.

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

Parameters

$s

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

Converts UTF-8 to dest encoding + html entities.

Parameters

$s
$encoding