Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用している Google API が「&」記号に対して無効な JSON を出力しています。
"name" : "Abercrombie \x26 Fitch Co."
私は単純に .replace('\x26', '&') に飽きましたが、それでも python-django の問題は解決していません。
これを回避する方法はありますか?
聞き逃したかもしれませんが{ }、正しくデコードできます。UTF-8Pythonインタープリターで使用していますか?
{ }
UTF-8
In [11]: simplejson.loads('''{"name" : "Abercrombie \x26 Fitch Co."}''') Out[11]: {'name': 'Abercrombie & Fitch Co.'}