vishnukraj / youtube-upload

Automatically exported from code.google.com/p/youtube-upload
0 stars 1 forks source link

Problem with using UTF-8 Characters #109

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
= Versions

youtube-upload:0.7.2
python: 2.7.3 
python-gdata:2.0.17

= Describe the steps (including the command you run) that will reproduce
the problem?

I can't use characters like: "ä,ü,ö,ß" in my title, tags and description.

It says: http://pastebin.com/XcdFQAk6

Original issue reported on code.google.com by rickazer...@gmail.com on 21 May 2013 at 4:07

GoogleCodeExporter commented 9 years ago
operating system? encoding being used in the console terminal? it should be:

$ locale charmap
UTF-8

Original comment by tokland on 21 May 2013 at 4:45

GoogleCodeExporter commented 9 years ago
It's Debian 7.0.0 on Raspberry PI

$locale charmap
UTF-8

Original comment by rickazer...@gmail.com on 21 May 2013 at 6:01

GoogleCodeExporter commented 9 years ago
that's weird, in a utf-8 terminal you should have no problems. For example I 
just uploaded this: http://www.youtube.com/watch?v=9UXAGfwRZwI

let's see... do you know any Python? can you add "print 
repr(options.description)" after "def upload_video" (line 341) and paste the 
output?

Original comment by tokland on 21 May 2013 at 6:45

GoogleCodeExporter commented 9 years ago
In youtube_upload.py, right?
Like this?
http://pastebin.com/N9LamcNZ

The output then is: 
http://pastebin.com/qjz6BnP4

Original comment by rickazer...@gmail.com on 21 May 2013 at 9:37

GoogleCodeExporter commented 9 years ago
nope, put the print before "title = to_utf8(options.title)", at the same 
indentation level. Also, past the command you are running (with a fake password)

Original comment by tokland on 21 May 2013 at 9:41

GoogleCodeExporter commented 9 years ago
Yeah... I think I found the problem

I use upload_with_curl.sh
When I delete that, I can use that chars.

Thats my Bashscript with CURL.
http://pastebin.com/4TpzMAr1

Original comment by rickazer...@gmail.com on 21 May 2013 at 9:44

GoogleCodeExporter commented 9 years ago
> I use upload_with_curl.sh. When I delete that, I can use that chars.

I don't see how this is the problem, but ok, glad it works now. You don't 
really need upload_with_curl, the script has two internal ways of loading (with 
or without pycurl).

Original comment by tokland on 21 May 2013 at 9:49

GoogleCodeExporter commented 9 years ago

Original comment by tokland on 13 May 2014 at 8:32