I\'m using python 3.4 and I\'m trying to write a list of names to a text file. The list is as follows:
my_list = [\'Dejan Živković\',\'Gregg Berhalter\',\'James
Try using UTF-8 encoding. You can start by putting # -- coding: utf-8 -- at the top of your .py file.