Closed Bug 280375 Opened 20 years ago Closed 20 years ago

url containing simplified chinese doesn't open the real link.

Categories

(Core :: Internationalization, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: shijialeee, Assigned: smontagu)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040210 Firefox/0.8
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040210 Firefox/0.8

if you copy & paste the following url to firefox, which should opens up an
existing wiki page. however it opens up a new page instead of the exist one
(that's how wiki work, create a new page if it doesn't exist.)

http://wiki.perlchina.org/main/show/等待审校的文章

if you copy the above link to IE , it opens up the existing page. 

Reproducible: Always

Steps to Reproduce:
1. copy the url http://wiki.perlchina.org/main/show/等待审校的文章  
2. paste to your firefox and load it
3.

Actual Results:  
it opens up a new page with 'creating ...' as title ( because it's wiki and
always create new page when the page doesn't exist )

Expected Results:  
the link does exist and the page should load up fine. please test it on IE.

I originally found this bug when i follow a link containg simplified chinese. if
the page is in gb2312 code, the link won't work. but it works on a utf8 encoded
webapge. 

here is the utf8 encoded page, the urls in the page all works
http://wiki.perlchina.org/main/show/HomePage

here is the gb2312 encoded page, the url in this page(url in
http://wiki.perlchina.org/main/show/ format) doesn't work
http://bbs.perlchina.org/pl/ccb/topic_view.cgi?forum=2&article_id=0002050130053225&publishtime_id=0002050130053225&page=15
go to 'about:config' and set 'network.standard-url.encode-utf8' to 'true' and
it'll work even in gb2312 pages. note that in upcoming firefox 1.1 and mozilla
1.8 (it's already fixed in 1.8a6), the default is true (the same as that of MS
IE : 'Always send URLs in UTF-8')

Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
I did the change on my firefox 0.8 and it worked on the first try then stop
working. I then tried this change on firefox 1.0 on other XP machines. It didn't
work at all. 

I am still testing against the same url :
here is the gb2312 encoded page, 
http://bbs.perlchina.org/pl/ccb/topic_view.cgi?forum=2&article_id=0002050130053225&publishtime_id=0002050130053225&page=15
please try the url (url starts with http://wiki.perlchina.org/main/show/) in
this page.

let me know if you need more information.

thanks!
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
WFM on Windows 2003/Linux and Mac OS X (ff 1.0). There have been reports that
somehow the pref. value (network.standard-url.encode-utf8) was lost after
restart on Windows although I can't reproduce. Please, make sure that the pref.
is set to true when you try. If you can reproduce the problem of pref. values
reset after restart, that's another bug (I guess there's a bug related).
a quick update (maybe a new problem?) : 

if i copy the problem url to the address bar and hit enter, i get to the real
url. This is solved.

however, click on that link doesn't open the real url. 

the 'network.standard-url.encode-utf8' is set to true all time.

(In reply to comment #4)
> however, click on that link doesn't open the real url.  
> the 'network.standard-url.encode-utf8' is set to true all time.

This is not a new problem. Setting 'net...encode-utf8' to true  should solve it
and it does for me. I have no idea  why you still have the problem.  What's the
URL in the url bar after you click on that link? 


 

the false url I got when clicking is 
http://wiki.perlchina.org/main/new/%B5%C8%B4%FD%C9%F3%D0%A3%B5%C4%CE%C4%D5%C2

that was the url(url starts with http://wiki.perlchina.org/main/show/) on this page:
http://bbs.perlchina.org/pl/ccb/topic_view.cgi?forum=2&article_id=0002050130053225&publishtime_id=0002050130053225&page=15

above tested on firefox 0.8 winXP and firefox 1.0 win2000.

also, remember i said that copy & paste thing working? it doesn't work anymore.
The pref is still set to true.
If that pref. is set to true, you should have 
http://wiki.perlchina.org/main/show/%E7%AD%89%E5%BE%85%E5%AE%A1%E6%A0%A1%E7%9A%84%E6%96%87%E7%AB%A0
(The last path element is %-escaped UTF-8 for 等待审校的文章 )
in the url bar. What you have is %-escaped GB2312 for 等待审校的文章

I have little idea why it doesn't work for you while it works perfectly well for me
(In reply to comment #2)
> I did the change on my firefox 0.8 and it worked on the first try then stop
> working. I then tried this change on firefox 1.0 on other XP machines. It didn't
> work at all. 

You are probably seeing bug 261934, which was fixed since firefox 1.0. The bug
is only visible when starting firefox without the profile manager (which may be
why you and Jungshik are getting different results).
> You are probably seeing bug 261934, which was fixed since firefox 1.0. The bug
> is only visible when starting firefox without the profile manager (which may be
> why you and Jungshik are getting different results).

ah, that must be it. I followed what the bug 261934 described and it works after
resetting the utf8 to true.

I don't remember seeing profile manager or anything like that in firefox. in any
rate, I guess I will have to wait for the next release to fix this. in the
meantime, whoever using 1.0 and don't do the upgrade will continue experiencing
the problem. there is not much one can do if they don't upgrade :-( (speaking of
myself, still using firefox 0.8)

Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.