On 28/04/2015 10:16, Ramon Medeiros wrote:
unicode(vm_name.encode('utf-8'), errors='ignore')
I think it should be better to use "errors=xmlcharrefreplace" so we will
make sure it will be XML complaint and also we will not loose any character.
For example, let's say I create a guest "kimchĂ", using your code it
will be converted to "kimch" so I will not be able to create another
guest named "kimch" as it will already exists.
Does that make sense?