I am trying to insert Portuguese text into my table. But, it is giving 'ascii' codec can't encode character '\xea' error.
Here is what I am doing :
   os.environ["NLS_LANG"] = ".AL32UTF8"
   query = "INSERT INTO MESSAGE (MESSAGE,LANGUAGE) VALUES (:MESSAGE,:LANGUAGE)"
   data = {'MESSAGE': '..... assistência para ajuda responda AJUDA Sua', 'LANGUAGE': 'Portuguese'}
   cursor = conn.cursor()
   cursor.execute(query, data)
   .....
My table structure:
CREATE TABLE MESSAGE  (   
    language  VARCHAR2(12) NOT NULL, 
    message  NVARCHAR2(350) NOT NULL
);
I am not sure if I need to set anything to insert other characters into the database.
 
    