I am trying to write a dictionary containing values with unicode characters to a text file and was thinking of using UnicodeWriter as mentioned in the python csv documentation. But I am unable to import it as the module is not recognized by python. I was wondering whether this is a problem with my version of python? Also if it is not possible to do it this way, is there any way to specify encoding while using the dictWriter class in python.
UnicodeWriter isn't an actual module in any version of Python. The code given in the documentation is an example which you'll have to copy into your own project.
unable to import UnicodeWriter python 2.7