mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[GH-ISSUE #105] 直接在chrome上浏览文本文件,中文显示乱码 #46
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aeiouaoeiuv on GitHub (Jul 15, 2022).
Original GitHub issue: https://github.com/sigoden/dufs/issues/105
Problem
F:\测试文件.txt,并往里面填入中文,保存为utf8格式.\dufs.exe -p 80 F:\测试文件.txt127.0.0.1即可显示测试文件.txt的内容,但是中文部分是乱码。乱码如下截图

测试文件.txt文件内容为:如果将
测试文件.txt另存为带有BOM的UTF-8,则Chrome上显示正常。Environment:
@sigoden commented on GitHub (Jul 15, 2022):
这是浏览器的默认行为,dufs 没什么可以改进的。