php Edge download file name garbled solution: 1. Open the local group policy editor; 2. Find "Custom User Agent String"; 3. Check the "Started" radio button; 4. , enter the string "MSIE 9.0" and click OK; 5. Re-open the edge browser.
The operating environment of this tutorial: Windows 7 system, PHP version 8.1, Dell G3 computer.
What should I do if the file name downloaded by Edge is garbled?
Method to solve garbled characters
1. First press the key combination "WIN R" to open the run window, enter "gpedit.msc" and press Enter;
2. After opening the Local Group Policy Editor, expand "Computer Configuration → Administrative Templates → Windows Components → Internet Explorer", find "Custom User Agent String" in the list on the right, and then double-click Open;
3. Check the "Started" radio button, enter the string "MSIE 9.0", and click OK. Finally, close and reopen the edge browser, download a file with a Chinese name and give it a try. You will find that the file can be displayed normally.
Solution to Garbled Code Method 2
1. Open the Internet Explorer browser, click Tools, "Compatibility View Settings", enter the URL, and click "Add" , check "Show intranet sites in Compatibility View" and "Use Microsoft Compatibility List";
2. Open Microsoft Edge, enter: about:flags, check "Use Microsoft Compatibility List";
3. Restart Microsoft Edge to see if the problem is solved.
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of What to do if the file name downloaded by php Edge is garbled. For more information, please follow other related articles on the PHP Chinese website!

php导入csv乱码问题的解决办法:1、构造一个解析函数“function tb_str_getcsv($string, $delimiter=',', $enclosure='"') {...}”;2、读取文件到变量;3、通过“substr($s,2)”去掉BOM头即可。

cmd php乱码的解决办法:1、在windows平台的cmd或shellpower中,执行php脚本并检查是否乱码;2、通过在php脚本里执行“exec("CHCP 65001");”命令去修改当前页码字符集即可。

php+fread()乱码是因为输出页面的编码和被读文件的编码不一致,其解决办法:1、打开相应的PHP文件;2、通过fread函数读取文件;3、通过“iconv('gbk', 'utf-8', $data)”方法将读取的内容转码即可。

linux命令行显示乱码的解决办法:1、通过“echo $LANG”命令查看当前支持的语言;2、使用“LANG=en_US”命令修改语言为英语语系即可解决乱码问题。

php写入数据库中文乱码的解决办法:1、创建数据库并设置“utf8_general_ci”编码;2、用PHP读写数据库,然后设置“mysql_query("set names 'utf8'");”即可。

wordpress后台乱码的解决办法:1、在wordpress的“wp-admin”文件夹下找到“admin.header.php”文件;2、将“charset”属性值设置为“UTF-8”格式即可恢复正常。

mysql注释乱码问题的解决办法:1、通过“show variables like '%colla%';show variables like '%char%';”命令查看数据库与服务端的字符集设置;2、通过“set character_set_client=utf8;”设置结果集为utf8即可。

php dompdf中文乱码的解决办法:1、打开前端文件;2、通过设置“@font-face {font-family:ttt;src: url(/static/font/simkai.ttf)}”引用中文字体;3、删除“dompdf_font_family_cache.php”即可。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Dreamweaver Mac version
Visual web development tools

SublimeText3 Chinese version
Chinese version, very easy to use

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

SublimeText3 Linux new version
SublimeText3 Linux latest version
