rejetto forum

Software => HFS ~ HTTP File Server => Bug reports => Topic started by: ioSIS on October 16, 2007, 08:29:32 PM

Title: wrong codepage in clipboard
Post by: ioSIS on October 16, 2007, 08:29:32 PM
Hello!

I use HFS 2.2a for sharing files with russian names. I turned off "Encode non-ASCII characters" option, but when  I add file with russian name I get a wrong link in clipboard.
For example
http://80.80.115.*/ìóçûêà.rar (correct link is http://80.80.115.*/музыка.rar)
I think that's some Unicode , but should be Win-1251.

May you fix this in next version?
Title: Re: wrong codepage in clipboard
Post by: rejetto on October 16, 2007, 08:42:20 PM
are you using a russian version of Windows or an english one?
Title: Re: wrong codepage in clipboard
Post by: ioSIS on October 16, 2007, 09:41:38 PM
are you using a russian version of Windows or an english one?

Russian Windows XP Pro SP2
Title: Re: wrong codepage in clipboard
Post by: rejetto on October 16, 2007, 09:44:02 PM
it's not unicode, it's the wrong codepage

you said the wrong url is in the clipboard.
what does HFS show in the address bar? (near "open in browser")
Title: Re: wrong codepage in clipboard
Post by: ioSIS on October 16, 2007, 10:28:03 PM
what does HFS show in the address bar? (near "open in browser")

right link! (http://80.80.115.*/музыка.rar)
wrong only in clipboard.
Title: Re: wrong codepage in clipboard
Post by: rejetto on October 16, 2007, 11:37:52 PM
it works perfectly on my system, with non-ansi characters like èçì.
i spent perhaps an hour on this issue, searching and trying, but found nothing i can do for you.
Title: Re: wrong codepage in clipboard
Post by: bacter on October 17, 2007, 08:52:06 PM
for rejetto:

I tested also in several ways the problem. The clipboard works ok with cirilic chars, for example if you paste to the adressfield of a browser, but pasting to some editors the caracteres are converted to '?' (%3f).

But I observed the following fenomena: If I create a file or or download one with cirilic caracters in his name, hfs treats it in a strange way:

If I add it to a real folder, hfs substitutes the cirilic caracteres with '???' and shows its filetype as a folder.

When I try to add the file from the context menu, hfs asks if y want to add it as a real or virtual folder.. In both ways, the template shows the file as a folder (normal, as it asked for the type of folder), but: in the vfs tree the 'folders' are not shown! Naturally I cant download the file музыка.mp3 (a music.mp3) because it seems a folder.

I wonder how this works in the russian version of hfs.
Title: Re: wrong codepage in clipboard
Post by: rejetto on October 17, 2007, 11:09:29 PM
you cannot test using a Windows that is not russian, bacter.
you are using unicode filenames, and HFS doesn't support that yet.