rejetto forum
Software => HFS ~ HTTP File Server => Bug reports => Topic started 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.
-
properties right clicking? clicking where?
anyway, did you try switching unicode support?
-
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.
-
why use "properties"?
IE has a "copy link" command, or something like that.
-
: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.
-
the JPEG should be
http://demo:demo@221.3.150.144:27016/demo/property.jpg
I just forgot to provide the username and password :)
-
i have no idea on how to reproduce such problem, but i accept any advice
-
I find something that may be helpful for the correct display.
-
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
-
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" )
-
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.
-
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.
-
Sorry,the last snapshot file should be http://demo:demo@221.3.150.144:27016/demo/6.jpg, and I make wrong.
-
wrong again!
comma was taken as part of the filename :D
http://demo:demo@221.3.150.144:27016/demo/6.jpg