dongsimang4036 2012-06-28 11:15 采纳率: 100%
浏览 403
已采纳

发布包含&pound的json字符串;

I have a VB6 application that is creating a JSON string and posting it to a website (PHP5). It may look like this:

data=thisisthejsonstringitcontainsthe£hmtlcharacter&code=123&api_key=321

This is an issue because the £ is thought to be the start of a new variable so the json string is being cut.

Does this need to be encoded somehow at the VB source? Or can I do something with this when it arrives at the website? If it needs encoded by VB can anyone suggest a suitable function?

I'm using the application/x-www-form-urlencoded content type when posting.

  • 写回答

2条回答 默认 最新

  • donglu1881 2012-06-28 11:20
    关注

    This might seem far fetched, but have you tried sending &pound urlencoded beforehand? being %26pound

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

报告相同问题?

悬赏问题

  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 正弦信号发生器串并联电路电阻无法保持同步怎么办
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 个人网站被恶意大量访问,怎么办
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)