```
import MySQLdb as mdb
import csv

db_user = 'root'
db_pass = 'FGifPYRMcuQYF3dh'
db_schema = 'site1.local'
dbs = {
     'db1': 'localhost'

}

def export_csv_accounts():
    con = None
    for dbnames in dbs:
         con = mdb.connect(dbs[dbnames], db_user, db_pass, db_schema)
         cur = con.cursor()
         db_query = "select * from tabAccount;"
         cur.execute(db_query)
         rows = cur.fetchall()
         out_file = csv.writer(open("/home/"+dbs[dbnames] + '_Accounts.csv', "wb"))
         columns = [i[0] for i in cur.description]
         out_file.writerow(columns)
         out_file.writerows(rows)
    con.close()
    return "Ok"

```

Error in file csv
"Company","Lâm Ch?n Huy","Vietnam"
I have a error with UTF-8 file.
How to use UTF-8 for csv file ?