KipgenNeo / youtube-upload

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

utf8 codec error #86

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
= Versions
Windows 2008 US version
Python 2.7.3 win32
Youtube-upload 0.7.1
python-gdata: 2.0.17

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

hi there i have a problem using french accents in title description and 
keywords fields.

my command line and the error is in the trace.txt (it works perfectly if 
there's no éàçèù ....)

here is what i tried to do :
- change the encoding of Windows command line by using chcp. As it's a US 
Windows version its default value is 437, i tried 850 (Latin-1), 858(Latin-1 + 
Euro symbol), 1252(ANSI West European), 65001(UTF8). Nothing works.
- put the command line in a bat file then try to change the file encoding in 
windows Notepad, default value is ANSI, which doesn't work, unicode and utf8 
neither.
- i tried to install the same, python + gdata + ytupload on a Windows 7 french 
version (cmd use 850 by default) and i have the same problem.

If you have an idea, you are more than welcome .

Philippe MICHEL

Original issue reported on code.google.com by fifo...@gmail.com on 18 Dec 2012 at 11:16

Attachments:

GoogleCodeExporter commented 9 years ago
Try r179. 

Original comment by tokland on 21 Dec 2012 at 3:19

GoogleCodeExporter commented 9 years ago
Thanks a lot !

Anyway i found a trick yesterday ( i m sorry i should have post it but i was 
testing ).
I just create a script.py, specifying in the header which encoding i use then i 
just import gdata and youtube_upload and call the main function of your script 
passing the parameters with an array. Not very elegant but it works. 

As i am now in holiday i will only test your fix on january ....

Again thank you !

Philippe

Original comment by fifo...@gmail.com on 21 Dec 2012 at 7:26

GoogleCodeExporter commented 9 years ago

Original comment by tokland on 13 May 2014 at 2:55