\Encode_Core

Summary

Methods
Properties
Constants
get_encoding()
utf16_to_utf8()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
detect_utf_encoding()
is_gb2312()
is_GBK()
No private properties found
N/A

Methods

get_encoding()

get_encoding(string  $str) : string

取得编码

Parameters

string $str

Returns

string —

$encoding

utf16_to_utf8()

utf16_to_utf8(mixed  $str) : mixed

Parameters

mixed $str

Returns

mixed —

detect_utf_encoding()

detect_utf_encoding(mixed  $text) : mixed

文件分析方法来检查UNICODE文件,ANSI文件没有文件头,此处不分析

Parameters

mixed $text

Returns

mixed —

is_gb2312()

is_gb2312(string  $str) : bool

检测是否GB2312编码

Parameters

string $str

Returns

bool —

is_GBK()

is_GBK(mixed  $str) : mixed

Parameters

mixed $str

Returns

mixed —