National characters in URI

戏子无情 提交于 2020-01-24 16:15:21

问题


How should authors publish (by URI) resources with names containing non-ASCII (for example national) characters?

Considering all the various parties (HTML code, browser sending request, browser saving file do disk, server receiving and processing request and server storing the file) all (possibly) using various encodings it seems nearly impossible to have it working consistently. Or at least I never managed.

When it comes to web pages I’m already used to that and always replace national characters with corresponding Latin base characters.

But when it comes to external files (PDFs, images, …) it somehow “feels wrong” to “downgrade” the names. Especially if one expects users to save those files on disk. How to deal with this issue?

来源:https://stackoverflow.com/questions/12928295/national-characters-in-uri

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!