update README.md
This commit is contained in:
parent
e44efa9f50
commit
752b1aff91
18
README.md
18
README.md
|
@ -1,2 +1,20 @@
|
|||
# php-coding
|
||||
|
||||
## TIPS
|
||||
|
||||
12.*.php依赖jpgraph,版本4.4.2,其中jpgraph_ttf.inc.php修改了部分代码:
|
||||
```
|
||||
...
|
||||
elseif( $aFF === FF_SIMSUN ) {
|
||||
// Do Chinese conversion
|
||||
if(mb_detect_encoding($aTxt,'auto')=='UTF-8'){
|
||||
return $aTxt;
|
||||
}
|
||||
if( $this->g2312 == null ) {
|
||||
include_once 'jpgraph_gb2312.php' ;
|
||||
$this->g2312 = new GB2312toUTF8();
|
||||
}
|
||||
return $this->g2312->gb2utf8($aTxt);
|
||||
}
|
||||
...
|
||||
```
|
Loading…
Reference in New Issue