Menu

#38 addcategory crash when category to add isnt ascii

closed-fixed
nobody
None
5
2004-06-06
2004-06-04
No

simple example trying to add catégory "jeu de rôle":

$ python addcategory.py
Wikipedia page with list of pages to change: Liste de
jeux de rôle
Getting page fr:Liste_de_jeux_de_r%C3%B4le
Category to add (do not give namespace) : jeu de rôle
Traceback (most recent call last):
File "addcategory.py", line 66, in ?
main()
File "addcategory.py", line 36, in main
catpl = wikipedia.PageLink(wikipedia.mylang,
ns[0]+':'+newcat.capitalize())
UnicodeDecodeError: 'ascii' codec can't decode byte
0xc3 in position 8: ordinal not in range(128)

Discussion

  • Ashar Voultoiz

    Ashar Voultoiz - 2004-06-06
    • status: open --> closed
     
  • Ashar Voultoiz

    Ashar Voultoiz - 2004-06-06

    Logged In: YES
    user_id=663115

    fixed in cvs now

     
  • Ashar Voultoiz

    Ashar Voultoiz - 2004-06-06
    • status: closed --> closed-fixed
     

Log in to post a comment.