thinkphp 验证码 开发环境,有中文路径 不显示问题。
项目目录:E:\items\C-科技有限公司\演艺网\小程序\V113\phptp\vendor\topthink\think-captcha\src\Captcha.php
找到代码:$fontttf = $ttfPath . $this->fontttf;
在下面添加:
$fontttf=mb_convert_encoding($fontttf,'gbk','utf-8');
修改一下,就支持中文的路径了。
$this->fontttf=mb_convert_encoding($this->fontttf,'gbk','utf-8');
$fontttf=mb_convert_encoding($fontttf,'gbk','utf-8');
页:
[1]