当サイトはユーザー体験を改善するためのメンテナンスを実施中に機能が制限される予定です。記事を読んでもあなたの問題が解決せず質問をしたい場合は、Twitter の @FirefoxSupport、Reddit の /r/firefox で、サポートコミュニティが皆さんを助けようと待機しています。

Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

Cant Launch Firefox from Mac with UTF8 International Domain name

  • 4 件の返信
  • 1 人がこの問題に困っています
  • 51 回表示
  • 最後の返信者: MTKaufman

more options

From a Mac running OSX 10.7, I Launch Firefox with a UTF-8 string containing an international domain name:

I try to launch http://www.vihtilä.fi and Firefox responds: Can’t connect to http://www.vihtil\xc3\xa4.fi but the address bar string is correct. If I copy the address bar string, and paste it back into the address bar, then hit enter, the site opens. Safari and Chrome launch the correct site.

\xc3\xc4 is the UTF8 representation of 'ä'

Firefox on Windows works correctly, but I pass it a WCHAR (UTF16) name.

From a Mac running OSX 10.7, I Launch Firefox with a UTF-8 string containing an international domain name: I try to launch http://www.vihtilä.fi and Firefox responds: Can’t connect to http://www.vihtil\xc3\xa4.fi but the address bar string is correct. If I copy the address bar string, and paste it back into the address bar, then hit enter, the site opens. Safari and Chrome launch the correct site. \xc3\xc4 is the UTF8 representation of 'ä' Firefox on Windows works correctly, but I pass it a WCHAR (UTF16) name.

すべての返信 (4)

more options

On this forum it is because it is already encoded that way via encodeURi() if you inspect the page source (Ctrl/Cmd + U):

この投稿は cor-el により に変更されました

more options

I was not clear. This is not a launch from a web page. It is a launch from within a program:
CFURLCreateWithBytes(... kCFStringEncodingUTF8 ...)
...
LSOpenFromURLSpec( ... )

The bytes are the UTF8 string "http://www.vihtilä.fi"

この投稿は cor-el により に変更されました

more options

That is weird.
The forum makes a correct and working link (www.vihtilä.fi) via preview, but changes the URL to the escaped encodeURI version when it is posted.

I can't replicate what you are doing, but the page opens via a desktop shortcut with "-url http://www.vihtilä.fi" command line parameter.

more options

I thought the problem might be RFC 2396, since CFURL.h says that URLs must have high-bit characters (UTF-8) percent-encoded. So I tried that, and now I send http://www.vihtil%c3%a4.fi/ via LSOpenFromURLSpec. That doesn't work, either, with the message: Firefox can't find the server at www.vihtil%C3%A4.fi."