[Kde-imaging] [Bug 153758] FlickrUploader fails to upload photos whose caption contains accented characters or a trailing space

Gilles Caulier caulier.gilles at gmail.com
Wed May 21 08:25:48 CEST 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=153758         
caulier.gilles gmail com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vardhman gmail com



------- Additional Comments From caulier.gilles gmail com  2008-05-21 08:25 -------
vardhman,

I can reproduce the problem easily here. I need your help to solve this problem in source code.

To reproduce the dysfunction, i just set a new tag using accentuate char before to upload and image from digiKam. To reduce multiple conflicts from source code, the image do not have tags, comments, and Exif/IPTC metadata in digiKam.

Look the screenshot here:

http://digikam3rdparty.free.fr/Screenshots/temp/flickrexport_bko_153758.png

Try to hack this problem, i have seen this point :

1/ Look the url form reported in the console. In my example, the new tag "idée" is not encoded properlly in the url :

digikam: Add photo query: http://www.flickr.com/services/upload/?auth_token=1085727-f28413d94cf8f0fd&api_key=49d585bafa0758cb5c58ab67198bf632&is_public=0&is_family=0&is_friend=0&tags=id�e&title=photo-000048.jpg&api_sig=80a0aea8d2765e7011c3e9ad821d3225

The from "&tags=id�e" do not repect the url encoding. KURL API can help us here, for ex. to use KURL::encode_string() or to use KURL class as well to hot the flickr url to query web site.

2/ the second point is releavant of MPForm class witch not support UTF-8 as well like a data container. It very well explained in this bugzilla entry:

http://bugs.kde.org/show_bug.cgi?id=155270

Vardhman, please give me your viewpoint. 

Thanks in advance

Gilles Caulier


More information about the Kde-imaging mailing list