使用工具:Aptana studio 2, pyDev。
内容:python,tornado框架。CMS(内容管理系统,简称后台)。
情况:在Aptana中运行,在保存含有中文的网页时,即使用nicedit控件,获取字符串,写入文件,相关截图如下:
代码:
file = open(fullFilePath,'w')
file.write(content)
file.close()
#content为传入字符串
这时候没有错误,正常保存。
但是,当我部署到windows 32环境中,使用command shell运行时,报错