Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有办法支持中文路径和中文文件名吗? #143

Closed
asuradoll opened this issue Jun 30, 2020 · 2 comments
Closed

有办法支持中文路径和中文文件名吗? #143

asuradoll opened this issue Jun 30, 2020 · 2 comments

Comments

@asuradoll
Copy link

当静态文件是中文路径或中文文件名时,会提示找不到文件。
访问URL:http://192.168.0.57:7777/中文.txt
提示:/%E4%B8%AD%E6%96%87.txt file not found

这样的提示没有走全局过滤器,应该在更深层被处理掉了,这个有办法解决吗?
因为项目有很多中文静态文件,课程等,用英文目录和英文名的话管理不便

@beetlex-io
Copy link
Owner

中文名测试过是可以的,你看一下文件是不是放在views目录下。也可以把你存在问题的情况做个sample放上来

@asuradoll
Copy link
Author

中文名测试过是可以的,你看一下文件是不是放在views目录下。也可以把你存在问题的情况做个sample放上来

感谢回复,更新到最新版的FastHttpApi框架就解决了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants