Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
周少峰
9 years ago
Commit
46cd0fc4d19b47df03785950d203f8d490fe1208
1 parent
06ed6355
pinyin error
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
library/WebPlugin/HelperSearch.php
library/WebPlugin/HelperSearch.php
View file @
46cd0fc
...
...
@@ -1825,9 +1825,6 @@ class HelperSearch
*/
public
static
function
pinYin
(
$zh
){
$ret
=
""
;
if
(
mb_detect_encoding
(
$zh
,
array
(
'GB2312'
,
'GBK'
,
'UTF-8'
))
!=
'UTF-8'
){
$zh
=
''
;
}
@
$s1
=
iconv
(
"UTF-8"
,
"gbk//ignore"
,
$zh
);
@
$s2
=
iconv
(
"gbk//ignore"
,
"UTF-8"
,
$s1
);
if
(
$s2
==
$zh
){
$zh
=
$s1
;}
...
...
Please
register
or
login
to post a comment