dtbam62840 2012-03-06 10:04
浏览 87
已采纳

日文和俄文字符 - 网络编码?

I have a Zope/Plone WS that calls some functions written in Python. That WS are called by PHP pages (utf-8 into header) but characters aren't visible.

I've tried to decode (where possible) special chars into entities (into Python) and that works, but not all chars have corresponding HTML entities.

I've tried to save the original Python file in UTF-8 format, but I thought that wasn't the right way.

Can someone help?

note : I pass through some php include, if this could be an hint...

Edit it's weird, because if I log all the "pieces" singly, then I have the right chars encoded. If I go up to the "main php page" (where I include all pieces), that messes up everything.

Obviously, the "main php page" has that:

<meta http-equiv="content-type" content="text/html;charset=utf-8" />
  • 写回答

2条回答 默认 最新

  • dongrong6235 2012-03-06 15:03
    关注

    I just edited the file site.py of python. I follow that guide: click here and everything is ok now. Thank you all for help.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥100 求数学坐标画圆以及直线的算法
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 自己瞎改改,结果现在又运行不了了
  • ¥15 链式存储应该如何解决
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站