I am trying to insert a document string which I am reading through a csv file in to sqlite database which has characters like (children's), It throws the following error:
DatabaseError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.
Before inserting the document I make sure I am converting the string to unistring .
unicode('Children's', 'unicode-escape')
I am using Django ORM to save the data. Is there something I can do to get rid of this?