die 'ascii' codec can T encode characters in position 0-4: ordinal not in range(128)

hiee ich m ein newbee in feild von python-bitte helfen..

dies ist der Fehler, wat ich bin immer

'ascii' codec can T encode characters in position 0-4: ordinal not in range(128)

hier ist mein code

import json
import urllib
import difflib

def main():
    f1 = open('tweet-stream.json','r')    
    Outputfile =open('newdata6.ods', 'w')
    count = 0

    for line in f1:
        d = json.loads(line)
        lang =  d["user"]["lang"]
        status_count = d["user"]["statuses_count"]
        id1= d['user']['id']
        name=d['user']['location']
        print >>Outputfile,"Language: "+ ','+ lang +','+ "Status_Count" +','+str(status_count)+','+str(id1)+','+str(name)


if __name__ == "__main__":    
    main()
InformationsquelleAutor | 2013-03-17
Schreibe einen Kommentar