pombreda / gcalcli

Automatically exported from code.google.com/p/gcalcli
0 stars 0 forks source link

UnicodeDecodeError #73

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I have Chinese character in my google calendar
2. I run 'gcalcli --cals owner calw' in command line

What is the expected output? What do you see instead?
Here is the error:
Traceback (most recent call last):
  File "/usr/bin/gcalcli", line 1122, in <module>
    DoooooItHippieMonster()
  File "/usr/bin/gcalcli", line 1074, in DoooooItHippieMonster
    gcal.CalQuery(args[0])
  File "/usr/bin/gcalcli", line 827, in CalQuery
    self._GraphEvents(cmd, start, count, eventList)
  File "/usr/bin/gcalcli", line 602, in _GraphEvents
    PrintMsg(CLR_NRM(), line + "\n")
  File "/usr/bin/gcalcli", line 207, in PrintMsg
    sys.stdout.write(unicode(msg, 'UTF-8'))
  File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe8 in position 160: 
invalid continuation byte

What version of the product are you using? On what operating system?
My os is ubuntu11.04
Python2.7

Original issue reported on code.google.com by BeanYoun...@gmail.com on 7 Sep 2011 at 8:04

GoogleCodeExporter commented 9 years ago
You're not using the latest version of gcalcli which fixes all the unicode 
problem.  Please try v2.1 and report back.

Original comment by eda...@insanum.com on 7 Sep 2011 at 4:52

GoogleCodeExporter commented 9 years ago
The unicode problem is fixed in the latest version
Thank you

Original comment by BeanYoun...@gmail.com on 8 Sep 2011 at 2:45

GoogleCodeExporter commented 9 years ago
Great!  Glad to hear it.  :-)

Original comment by eda...@insanum.com on 8 Sep 2011 at 2:53