[Kimchi-devel] [PATCH 1/5] Create title tag

Aline Manera alinefm at linux.vnet.ibm.com
Mon May 4 18:54:24 UTC 2015



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?




More information about the Kimchi-devel mailing list