rejetto forum

Software => HFS ~ HTTP File Server => Bug reports => Topic started by: xiehb on May 08, 2006, 05:29:07 AM

Title: something wrong with items' URLs
Post by: xiehb on May 08, 2006, 05:29:07 AM
As mentioned before by somesone,it's something wrong dealing with Chinese language too.
When retrieving folders and files containing Chinese characters,the location bar and the status bar give the right URLs,such as http://192.168.1.6:27016/Teaching/%D6%D0%C9%BD%B4%F3%D1%A7%B8%C5%C2%CA. But properties from the right clicks on files and folders give unrecogizable characters, the url shown above is encoded as http://192.168.1.6:27016/Teaching/»ã±àÓïÑÔ³ÌÐòÉè¼Æ. It makes troubles in copying URLs to some download managers,how can I fix it?

Thanks.
Title: something wrong with items' URLs
Post by: rejetto on May 09, 2006, 03:13:38 AM
properties right clicking? clicking where?

anyway, did you try switching unicode support?
Title: something wrong with items' URLs
Post by: Anonymous on May 09, 2006, 12:17:55 PM
right click on the hyperlinks of folders & files.
The sourcecode is right,but the properties of files and folders in pages give unrecoginizable characters. Unicode does make a difference,but neither Unicode nor non-Unicode gives the right form of URLs.
Title: something wrong with items' URLs
Post by: rejetto on May 14, 2006, 08:34:14 PM
why use "properties"?
IE has a "copy link" command, or something like that.
Title: something wrong with items' URLs
Post by: Anonymous on June 27, 2006, 08:59:02 AM
:P
It works now.
There is no "Copy Link" for right clicking menu of IE in simplied Chinese edition of Window XP professional,because the item was translated into a word more like "shortcut",and I never used the copy link menu before.

However,the property encoding problem still exists. You can check sample JPEG file at http://221.3.150.144:27016/demo/property.jpg

Thanks a lot.
Title: something wrong with items' URLs
Post by: Anonymous on June 27, 2006, 09:01:37 AM
the JPEG should be
http://demo:demo@221.3.150.144:27016/demo/property.jpg

I just forgot to provide the username and password :)
Title: something wrong with items' URLs
Post by: rejetto on June 29, 2006, 09:39:11 AM
i have no idea on how to reproduce such problem, but i accept any advice
Title: something wrong with items' URLs
Post by: Anonymous on July 03, 2006, 10:50:16 AM
I find something that may be helpful for the correct display.
Title: something wrong with items' URLs
Post by: Anonymous on July 03, 2006, 10:50:47 AM
1) I've taken a snapshot of folders containing Chinese characters,and the JPEG file can be found at http://demo:demo@221.3.150.144:27016/demo/1.jpg
Title: something wrong with items' URLs
Post by: Anonymous on July 03, 2006, 10:53:07 AM
2) I viewed the source code of the page. I aslo took a snapshot,in case of your OS cannot resolve Chinese characters. I have add some CR in the source code for easy reading,or the code line would be very long.
You can refer to http://demo:demo@221.3.150.144:27016/demo/2.jpg

(Why can't post the reply in a whole :(((( ,tell me "I am feeling sick" )
Title: something wrong with items' URLs
Post by: Anonymous on July 03, 2006, 10:55:22 AM
We can find that the link of folder "JavaZZZZ"(ZZZZ represents Chinese characters,and just be masked for your browser) is encoded as "/Teaching/Java%CA%D3%C6%B5%BD%CC%B3%CC",and I think that it is the cause.
Title: something wrong with items' URLs
Post by: Anonymous on July 03, 2006, 10:56:23 AM
3) Let's modify the source code now.
    Original :
        "/Teaching/Java%CA%D3%C6%B5%BD%CC%B3%CC"
     Modified :
        "/Teaching/JavaZZZZ"
     
     ZZZZ is the Chinese characters,just the same as folder name.
   
     The sample jpeg file can be found at http://demo:demo@221.3.150.144:27016/demo/3.jpg

4) Save the modified source code and check the property dialog now.
    http://demo:demo@221.3.150.144:27016/demo/4.jpg

:) It is in right form now.

Unlike EN.* characters,Chinese characters(by the way,in our minds,should say that words better) must be encoded in two bytes. It is too reminiscent of Unicode problem.

I have set HFS coding rules default as encoding space and non-ASCII characters,but not "use Unicode in HTML". Then I checked the "use Unicode in HTML" and removed non-ASCII characters encoding menu items,some problem emerged. The property dialog snapshot can be found at http://demo:demo@221.3.150.144:27016/demo/5.jpg . It still can not give correct name for the links of folders.

I only know little about the encoding system,and hope the weak analysis can help you to fix the problem in the later release.
Title: something wrong with items' URLs
Post by: Anonymous on July 03, 2006, 11:01:26 AM
Sorry,the last snapshot file should be http://demo:demo@221.3.150.144:27016/demo/6.jpg, and I make wrong.
Title: something wrong with items' URLs
Post by: Anonymous on July 03, 2006, 11:06:22 AM
wrong again!
comma was taken as part of the filename :D

http://demo:demo@221.3.150.144:27016/demo/6.jpg