0

我通过 python 代码从 Postgresql 数据库中获取一些字符串,并尝试通过 API 将其发送到 Facebook。

cur.execute("SELECT  text_column FROM table")
.....
print graph.post(path = str(row["FB_acnt_id"])+'/notifications', template = str(row["_text"]), access_token = fb_token_app, href = str(row["_href_text"]))

一切正常,除了带有撇号的文本。例如:短语 - 它显示为 - It\047s

如何解决这个问题?

谢谢。

4

0 回答 0