<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 03/04/2014 11:24 PM, Sheldon wrote:<br>
</div>
<blockquote cite="mid:53168AE1.6050804@linux.vnet.ibm.com"
type="cite">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<div class="moz-cite-prefix">On 03/05/2014 03:24 AM, Aline Manera
wrote:<br>
</div>
<blockquote cite="mid:53162868.7080002@linux.vnet.ibm.com"
type="cite">
<meta content="text/html; charset=UTF-8"
http-equiv="Content-Type">
<div class="moz-cite-prefix">On 03/03/2014 06:50 AM, Sheldon
wrote:<br>
</div>
<blockquote cite="mid:5314505B.6020803@linux.vnet.ibm.com"
type="cite">Now there's a issue: <br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://github.com/kimchi-project/kimchi/issues/333">https://github.com/kimchi-project/kimchi/issues/333</a>
<br>
<br>
The reason of this issue is because high level cherrpy version
make some change about set_response. <br>
<br>
The high level cherrpy encode the unicode error message by
itself. <br>
<br>
So the kimchi do not encode the unicode error message any
more. <br>
<br>
It is right, the cherrpy should encode the unicode error
message. <br>
<br>
Now we can require the cherrypy version to solve this problem.
<br>
<br>
we can also check the cherrypy version in kimchi code as
follow in order to avoid to require the cherrypy version. <br>
<br>
like: <br>
if cherrypy.__version__ << 3.2.5: <br>
return res <br>
else: <br>
return res.encode("utf-8") <br>
<br>
</blockquote>
<br>
<font face="DejaVu Sans Mono">Did you confirm all the supported
distros have access to the high cherrypy version?<br>
If so, I am OK to upgrade the cherrypy version<br>
</font> </blockquote>
royce has helped me to check <font face="DejaVu Sans Mono">the
high cherrypy version is 3.2.2 on ubuntu. <br>
<br>
So maybe we can not solve this problem by upgrade CherryPy.<br>
We can </font><font face="DejaVu Sans Mono"><font face="DejaVu
Sans Mono">solve this problem by the patch.<br>
</font>Issue #333: do not encode error.html when the cherrpy
version less than '3.2.5'<br>
</font><br>
</blockquote>
<br>
Ok.<br>
<br>
<blockquote cite="mid:53168AE1.6050804@linux.vnet.ibm.com"
type="cite">
<pre class="moz-signature" cols="72">--
Thanks and best regards!
Sheldon Feng(冯少合)<a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:shaohef@linux.vnet.ibm.com"><shaohef@linux.vnet.ibm.com></a>
IBM Linux Technology Center</pre>
</blockquote>
<br>
</body>
</html>