Modify ↓
Ticket #705 (closed defect: fixed)
unicode german umlaut client error
Reported by: | m4z <[email protected]…> | Owned by: | solj |
---|---|---|---|
Priority: | minor | Milestone: | Bcfg2 1.0.0 Release |
Component: | bcfg2-client | Version: | 1.0 |
Keywords: | unicode umlaut | Cc: |
Description
This is revision 5399.
# bcfg2 -qenv Traceback (most recent call last): File "/usr/local/bin/bcfg2", line 300, in <module> client.run() File "/usr/local/bin/bcfg2", line 242, in run self.config = Bcfg2.Client.XML.XML(rawconfig) File "/usr/lib/python2.5/xml/etree/ElementTree.py", line 963, in XML parser.feed(text) File "/usr/lib/python2.5/xml/etree/ElementTree.py", line 1245, in feed self._parser.Parse(data, 0) UnicodeEncodeError: 'ascii' codec can't encode character u'\xc4' in position 21094: ordinal not in range(128) # bcfg2 -qenvc ~/`hostname`.`date "+%F_%H-%M"`.xml Traceback (most recent call last): File "/usr/local/bin/bcfg2", line 300, in <module> client.run() File "/usr/local/bin/bcfg2", line 242, in run self.config = Bcfg2.Client.XML.XML(rawconfig) File "/usr/lib/python2.5/xml/etree/ElementTree.py", line 963, in XML parser.feed(text) File "/usr/lib/python2.5/xml/etree/ElementTree.py", line 1245, in feed self._parser.Parse(data, 0) UnicodeEncodeError: 'ascii' codec can't encode character u'\xc4' in position 21094: ordinal not in range(128) # head -c 21100 <hostname>.<date>.xml | tail -c 20 | tail -n1; echo "" " Letzte Änder # cat /etc/bcfg2.conf [communication] protocol = xmlrpc/ssl password = ... user = ... [components] bcfg2 = https://...:6789 encoding = UTF-8 #
Attachments
Change History
comment:1 Changed 14 years ago by solj
- Owner changed from desai to solj
- Status changed from new to accepted
comment:2 Changed 13 years ago by solj
- Status changed from accepted to closed
- Resolution set to fixed
I believe this is fixed in [f940deb8419060c6a5685ad460efa232ba1a8aad] (SVN r5410).
comment:3 Changed 13 years ago by m4z <[email protected]…>
it is fixed indeed, thank you.
Note: See
TracTickets for help on using
tickets.