X-Git-Url: http://dolda2000.com/gitweb/?p=wrw.git;a=blobdiff_plain;f=wrw%2Fsp%2Fcons.py;h=1e3d678c0cec11e87599fb3677ee9111fb8445d9;hp=ff0d0afa317547a353cca729858b65852db72484;hb=50be6d543e7a6067b631930a025bfdaf53fedbc4;hpb=85ed5fa5dae0fe236584926824f7292b6e697e76 diff --git a/wrw/sp/cons.py b/wrw/sp/cons.py index ff0d0af..1e3d678 100644 --- a/wrw/sp/cons.py +++ b/wrw/sp/cons.py @@ -40,7 +40,7 @@ class element(node): return self.__todom__(doc).toxml() class context(object): - charset = sys.getfilesystemencoding() + charset = (sys.getfilesystemencoding() or "ascii") def __init__(self): self.nodeconv = {}