pombreda / gcalcli

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

UnicodeEncodeError: 'ascii' codec can't encode character u'\xf8' #88

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. A calendar with nordic characthers. æøå.
gcalcli --user=username --pw=password --mon --nc --cals all calw > 
/home/username/script/cal.txt
Wrong output

2.gcalcli --user=username --pw=password --mon --nc --cals all calw | tee 
/home/username/script/cal.txt
Wrong output

3. gcalcli --user=username --pw=password --mon --nc --cals all calw
Rigth output

4. Setting username and passwd in ~/.gcalclirc gives me the wrong output every 
time.

What is the expected output? 
+----------+----------+----------+----------+----------+----------+----------+
|Monday    |Tuesday   |Wednesday |Thursday  |Friday    |Saturday  |Sunday    |
+----------+----------+----------+----------+----------+----------+----------+
|16 Apr    |17 Apr    |18 Apr    |19 Apr ** |20 Apr    |21 Apr    |22 Apr    |
|          |          |          |          |          |          |          |
|Uke 16 i  |8:00am    |9:00am    |8:00am    |9:00am    |          |          |
|2012      |Hele      |Nitor as  |Sammen    |Vestrevike|          |          |
|          |dagen med |ikke      |med       |n         |          |          |
|8:00am    |Raymon    |fakturert |vidar.    |          |          |          |
|Møte Ncs  |          |4 t       |Østerveien|          |          |          |
|          |          |          |?         |          |          |          |
|8:30am    |          |1:00pm    |          |          |          |          |
|Floren    |          |Sammen    |          |          |          |          |
|skole GK. |          |med       |          |          |          |          |
|Ikke      |          |vidar.    |          |          |          |          |
|fakturert |          |Østerveien|          |          |          |          |
|4t        |          |?         |          |          |          |          |
+----------+----------+----------+----------+----------+----------+----------+

What do you see instead?
Traceback (most recent call last):
  File "/usr/bin/gcalcli", line 1512, in <module>
    BowChickaWowWow()
  File "/usr/bin/gcalcli", line 1459, in BowChickaWowWow
    gcal.CalQuery(args[0])
  File "/usr/bin/gcalcli", line 999, in CalQuery
    self._GraphEvents(cmd, start, count, eventList)
  File "/usr/bin/gcalcli", line 700, in _GraphEvents
    PrintMsg(CLR_NRM(), line + "\n")
  File "/usr/bin/gcalcli", line 233, in PrintMsg
    sys.stdout.write(msg)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf8' in position 2: 
ordinal not in range(128)

What version of the product are you using? On what operating system?
gcalcli v2.1 (Eric Davis)
Linux 3.1.9-1.4-default on i686
openSUSE 12.1 (i586)
VERSION = 12.1
CODENAME = Asparagus
Python 2.7.2

Please provide any additional information below.
Tell me what to test an I will :)

Original issue reported on code.google.com by espe...@gmail.com on 19 Apr 2012 at 9:29

GoogleCodeExporter commented 9 years ago
What terminal?

Original comment by cxm...@gmail.com on 13 May 2012 at 8:18

GoogleCodeExporter commented 9 years ago
gcalcli moved to github: https://github.com/insanum/gcalcli

This is most likely already fixed.  Please verify in the master branch on 
github.

Original comment by eda...@insanum.com on 15 May 2012 at 3:16

GoogleCodeExporter commented 9 years ago
Got same error:
Traceback (most recent call last):
  File "/usr/bin/gcalcli", line 1529, in <module>
    BowChickaWowWow()
  File "/usr/bin/gcalcli", line 1474, in BowChickaWowWow
    gcal.CalQuery(args[0], count=int(args[1]))
  File "/usr/bin/gcalcli", line 1007, in CalQuery
    self._GraphEvents(cmd, start, count, eventList)
  File "/usr/bin/gcalcli", line 692, in _GraphEvents
    PrintMsg(CLR_NRM(), line + "\n")
  File "/usr/bin/gcalcli", line 232, in PrintMsg
    sys.stdout.write(msg)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u015a' in position 
61: ordinal not in range(128)

(version from github taken 3 min. ago)

Original comment by amccl...@gmail.com on 18 May 2012 at 8:42

GoogleCodeExporter commented 9 years ago
Wrong forum... gcalcli moved to github: https://github.com/insanum/gcalcli

Original comment by eda...@insanum.com on 21 May 2012 at 6:09