[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Guest Domain with Japanese names (UTF-8) fails with UnicodeEncodeError:ascii codec cant encode characters - Xen 3.2.0


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: "Ramachandran Radhakrishnan" <rama.radha@xxxxxxxxx>
  • Date: Thu, 15 Jan 2009 10:41:00 +0530
  • Delivery-date: Wed, 14 Jan 2009 21:11:29 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=A4F+4UKdyeTt7Pul2k31Rokc/Vo2reCI43pYCNIDH6OacBUUBvWuIuu0FHGmbgd2GY go/oWBPVRFgma4S2wJtHli5Wvd6U5IqVuJTRwyW8yQFDPL0x8YQU7bXmrnjn6KFcJkw2 WLn+TO+1OI/Jp2aPhAE0kTT1JGJSsg0XIN980=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hello,

I try to create a domain with Japanese name encoded in utf-8 as in the
config file. The xen version I use is 3.2.0. I get the
UnicodeEncodeError: 'ascii' codec can't encode characters in position
0-1: ordinal not in range(128) in the Xend.log(Excerpt pasted below)
I have earlier tried this in xen version 3.0.3 as well. I searched the
user list and google and could not find a lead.

I could not find anything in the xen users list for UnicodeEncodeError.
I have tried setting the locale to ja_JP too.

Is guest domain names in utf-8,unicode supported in this or later releases?

Please help.

Thanks
Ramachandran

Config file
************

# -*- coding: utf-8 -*-
# Automatically generated. Don't edit
#
#name="newubuntu"
name=unicode("光希",'utf-8').encode('utf-8')
builder="hvm"
memory ="1536"
vif= ['type=ioemu,mac=00:16:3e:a0:0:16,bridge=xenbr0']
device_model="/usr/lib/xen/bin/qemu-dm-sync"
kernel="/usr/lib/xen/boot/hvmloader"
vnc=1
vncunused=0
vnclisten="0.0.0.0"
apic=1
acpi=0
pae=1
vcpus=1
boot='d'
usb=1
usbdevice='tablet'
disk =['file:/vms1/22/vdisk0,ioemu:hda,w',
'file:/vms1/22/ubuntu-8.10-desktop-i386.iso,hdd:cdrom,r']

xend.log
********

Traceback (most recent call last):
 File 
"/root/build/xen-3.2.0/dist/install/usr/lib/python/xen/util/xmlrpclib2.py",
line 131, in _marshaled_dispatch
  response = self._dispatch(method, params)
 File "/usr/lib/python2.4/SimpleXMLRPCServer.py", line 406, in _dispatch
  return func(*params)
 File 
"/root/build/xen-3.2.0/dist/install/usr/lib/python/xen/xend/server/XMLRPCServer.py",
line 72, in domain_create
  info = XendDomain.instance().domain_create(config)
 File 
"/root/build/xen-3.2.0/dist/install/usr/lib/python/xen/xend/XendDomain.py",
line 959, in domain_create
  dominfo = XendDomainInfo.create(config)
 File 
"/root/build/xen-3.2.0/dist/install/usr/lib/python/xen/xend/XendDomainInfo.py",
line 78, in create
  domconfig = XendConfig.XendConfig(sxp_obj = config)
 File 
"/root/build/xen-3.2.0/dist/install/usr/lib/python/xen/xend/XendConfig.py",
line 276, in __init__
  self._sxp_to_xapi(sxp_obj)
 File 
"/root/build/xen-3.2.0/dist/install/usr/lib/python/xen/xend/XendConfig.py",
line 656, in _sxp_to_xapi
  log.debug('_sxp_to_xapi(%s)' % scrub_password(sxp_cfg))
 File 
"/root/build/xen-3.2.0/dist/install/usr/lib/python/xen/xend/XendConfig.py",
line 515, in _parse_sxp
  cfg[key] = val
UnicodeEncodeError: 'ascii' codec can't encode characters in position
0-1: ordinal not in range(128)

xm info:
********

host                   : quad_vmm_2
release                : 2.6.18-prep-xen
version                : #5 SMP Sat Jan 10 18:46:17 IST 2009
machine                : i686
nr_cpus                : 4
nr_nodes               : 1
cores_per_socket       : 4
threads_per_core       : 1
cpu_mhz                : 2666
hw_caps                :
bfebfbff:20100000:00000000:00000140:0408e3fd:00000000:00000001
total_memory           : 8122
free_memory            : 7024
node_to_cpu            : node0:0-3
xen_major              : 3
xen_minor              : 2
xen_extra              : .0
xen_caps               : xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p
xen_scheduler          : credit
xen_pagesize           : 4096
platform_params        : virt_start=0xf5800000
xen_changeset          : unavailable
cc_compiler            : gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)
cc_compile_by          : root
cc_compile_domain      : (none)
cc_compile_date        : Sat Jan 10 18:43:41 IST 2009
xend_config_format     : 4



Locale:
*******

[root@quad_vmm_2 xen]# locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
[root@quad_vmm_2 xen]#

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.