谢谢各位了。
下午本来是练听力来着,但一看到那乱码就不爽,这下停不下来了。不过现在总算可以了。
自己摸索出来的,很有成就感,虽然不知道原因,但能成就好。正想想写个小结,却发现给Zoom. Quiet先写了。
不过我也要写写啦。。
文件KarrigellRequestHandler.py里面有个函数:
def content_type():
"return content type for html texts"
if not k_config.output_encoding:
ct="text/html"
else:
ct="text/html; charset="+k_encoding_charsets.encoding2python_map.get(
k_config.output_encoding, k_config.output_encoding)
#encoding2mime_map
return ct
代码中的k_encoding_charsets.encoding2python_map原来是k_encoding_charsets.encoding2mime_map。因为我把k_config.outputEncoding(在k_config中改)改成"utf_8" ,但却发现encoding2mime_map中居然没有utf-8,而encoding2python_map有,所以就这么改过来了。
结果这么胡乱一改,居然可以了。
郁闷!Zoom.Quiet改的是Karrigell.ini。再改上面那些之前,conf下面有关encoding的都一个个改了试过了,都不行。看来是RP问题了。
2008/8/5 Zoom. Quiet <
zoom....@gmail.com>: