\Charset

Summary

Methods
Properties
Constants
utf82gb()
gb2utf8()
u2utf8()
utf82u()
big52gb()
gb2big5()
UnicodeUrl2Gbk()
AutoCharset()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

utf82gb()

utf82gb(string  $utfstr) : string

UTF-8 转GB编码

Parameters

string $utfstr

需要转换的字符串

Returns

string

gb2utf8()

gb2utf8(string  $gbstr) : string

GB转UTF-8编码

Parameters

string $gbstr

gbk的字符串

Returns

string

u2utf8()

u2utf8(string  $c) : string

Unicode转utf8

Parameters

string $c

Unicode的字符串内容

Returns

string

utf82u()

utf82u(string  $c) : string

utf8转Unicode

Parameters

string $c

UTF-8的字符串信息

Returns

string

big52gb()

big52gb(string  $Text) : string

Big5码转换成GB码

Parameters

string $Text

字符串内容

Returns

string

gb2big5()

gb2big5(string  $Text) : string

GB码转换成Big5码

Parameters

string $Text

字符串内容

Returns

string

UnicodeUrl2Gbk()

UnicodeUrl2Gbk(string  $str) : string

unicode url编码转gbk编码函数

Parameters

string $str

转换的内容

Returns

string

AutoCharset()

AutoCharset(  $fContents,   $from = 'gbk',   $to = 'utf-8') : string

自动转换字符集 支持数组转换

Parameters

$fContents
$from
$to

Returns

string