为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

file links with utf-8 characters don't work in windows

  • 8 个回答
  • 2 人有此问题
  • 2 次查看
  • 最后回复者为 asq

more options

When I click a link like "file:///C:\символы UTF-8\path" to open in Windows File Explorer it doesn't work. ("My documents" folder opens instead). How can such links be converted to Windows encoding, when Windows File Explorer is called?

My settings: network.protocol-handler.expose.file = false network.protocol-handler.external.file = true

FF 27, Windows 7 Thank you!

When I click a link like "file:///C:\символы UTF-8\path" to open in Windows File Explorer it doesn't work. ("My documents" folder opens instead). How can such links be converted to Windows encoding, when Windows File Explorer is called? My settings: network.protocol-handler.expose.file = false network.protocol-handler.external.file = true FF 27, Windows 7 Thank you!

所有回复 (8)

more options

If you start from file:///C:/ and click your way to that folder, then right-click the address bar > Copy can you see any difference from the URL that doesn't work?

more options

By the way, version 27 is not secure; Mozilla discloses security flaws after each new release. Is something holding you back from upgrading to Firefox 29? Please let us know so we can suggest solutions or workarounds.

P.S. Firefox 30 will be released later this week.

more options

jscher2000, thank you for the care! If I copy the link from the page body and put it in address bar, it works, and is coded with %xx. But it doesn't work from page inline - when a call to Windows File Explorer is made. The link works when network.protocol-handler.expose.file = true but not when false.

Can I use in Firefox 30 the old interface (not Australis)? Thank you!

由asq于修改

more options

May be the problem is that Firefox calls explorer.exe (or other Windows programs to handle a file) encoding the filename with %-encoding, which is not recognized by the application. Or FF uses encodeing not compatible with program called.

由asq于修改

more options

Hmm, does Firefox use a different URL than IE does? Or does IE convert it to a more file-system friendly syntax when passing it to the file system?

Regarding the interface of Firefox 30, you will need an extension to make any heavy modifications to the UI. This one is popular: https://addons.mozilla.org/firefox/addon/classicthemerestorer/

more options

I think the problem can be that:

Calling Windows application from the link on UTF-8 page, Firefox sends a parameter (filename) encoded in UTF-8, which is not accepted by Windows application in case of non-latin characters. Workaround needed.

more options

You can use extensions like Classic Theme Restorer and code in userChrome.css to restore a lot of the changes that were made to Firefox when the Australis appearance landed.

See also:

more options

I spent many days customizing Firefox and am not going to start over, again. I'm not a specialist in coding userChrome.css, am very busy with other stuff. It's better if developers restore ALL of the changes once, than thousands of users will spend many days each. Dixi.

Anyway, my main question is:

How to make Firefox send a parameter (filename) to a Windows application, encoded in Windows-1251 instead of UTF-8?

Would be very grateful.