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

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

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条)

报告相同问题?

悬赏问题

  • ¥15 flink cdc无法实时同步mysql数据
  • ¥100 有人会搭建GPT-J-6B框架吗?有偿
  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名