[Qt-interest] QFtp put functions has a bug?
tank
tangk at lemote.com
Thu Feb 12 03:05:12 CET 2009
Pavel Koshevoy 写道:
> I think your best option is to use ftplib, since it is working for you. QFtp
> doesn't work with UTF-8 filenames, don't use it. In the future you may try
> using QNetworkAccessManager, as Thiago mentioned the problem may be corrected there.
>
> Pavel.
>
> tank wrote:
>
>> hi all
>> last , i use the open source lib named ftplib, that's ok!
>> UTF-8 code
>> use it's api
>> put("中国.txt", "/home/ftp/中国.txt");
>> server :
>> ls /home/ftp/
>> 中国.txt
>> it's right.
>>
>> but when i use qt network lib [UTF-8], ftp->put("中国.txt", "/home/ftp/
>> 中国.txt");
>> ls /home/ftp/
>> ??.txt
>>
>
>
>>>>>
>>>>>
>>>>>> Thiago Macieira wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> You can't. QFtp is limited to Latin 1.
>>>>>>>
>>>>>>>
>>>>>> That's broken. Is there a technical reason for this? Will QFtp support
>>>>>> international file names (QString or UTF-8 std::string) in the future?
>>>>>>
>>>>>>
>>>>> Doesn't that depend on your FTP server?
>>>>>
>>>>> Curious... so how does this relate to the rest of the Internet? Are
>>>>> URLs also i18n? What about web servers? Libc? DNS? Does the FTP
>>>>> protocol even support i18n filenames?
>>>>>
>>>>> - Srdjan
>>>>>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
yes,i will try, if i have times
More information about the Qt-interest-old
mailing list