Dec-22-2018, 05:23 PM
help,please.
I am coding a spider-code to collect message on a Japanese website, storing data using json-module
however, default json dump the data with Unicode. cant see raw Japanese
I see one solution on the internet is
but i cant encode my data structure into Unicode.
how can I see raw Japanese in my json file?
I am coding a spider-code to collect message on a Japanese website, storing data using json-module
however, default json dump the data with Unicode. cant see raw Japanese
I see one solution on the internet is
json.loads('このコーディネートのスタイリストについて',encoding='utf-8')but, this keyword is not available in json dump!
json.dump('このコーディネートのスタイリストについて',fp,encoding='utf-8')this code raise an error that cant decode the 'gbk'!
but i cant encode my data structure into Unicode.
how can I see raw Japanese in my json file?