Mercurial > libervia-backend
comparison frontends/wix/param.py @ 34:a544b376b6f0
use proper utf-8 encoding for parsing xml in parameters
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 13 Dec 2009 18:36:20 +1100 |
parents | 925ab466c5ec |
children | a5b5fb5fc9fd |
comparison
equal
deleted
inserted
replaced
33:b9bb5d8e0cc7 | 34:a544b376b6f0 |
---|---|
55 | 55 |
56 def addCategory(self, category): | 56 def addCategory(self, category): |
57 panel=wx.Panel(self.notebook) | 57 panel=wx.Panel(self.notebook) |
58 panel.sizer = wx.BoxSizer(wx.VERTICAL) | 58 panel.sizer = wx.BoxSizer(wx.VERTICAL) |
59 | 59 |
60 cat_dom = minidom.parseString(self.host.bridge.getParamsForCategory(category)) | 60 cat_dom = minidom.parseString(self.host.bridge.getParamsForCategory(category).encode('utf-8')) |
61 | 61 |
62 for param in cat_dom.documentElement.getElementsByTagName("param"): | 62 for param in cat_dom.documentElement.getElementsByTagName("param"): |
63 name = param.getAttribute("name") | 63 name = param.getAttribute("name") |
64 type = param.getAttribute("type") | 64 type = param.getAttribute("type") |
65 value = param.getAttribute("value") | 65 value = param.getAttribute("value") |