Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3 - Writing "ç" converted to ç in csv file #76

Open
b1139 opened this issue Jan 9, 2017 · 0 comments
Open

Python 3 - Writing "ç" converted to ç in csv file #76

b1139 opened this issue Jan 9, 2017 · 0 comments

Comments

@b1139
Copy link

b1139 commented Jan 9, 2017

list_data = ['ë ï','Française de Mécanique','ü','ç']

f = open('C:\MFiles\\M.csv','wb')

cs = csv.writer(f,delimiter = '§',encoding='utf-8')

cs.writerow(list_data)

f.close()

When I look into M.csv I could see the below text

  1. ë ï§
  2. Franç
  3. aise de Mécanique§
  4. ü§
  5. ç

But when you look into the list I have only 4 strings

I want to write as ç character instead of §

Because the delimiter also §

Please help me how to go about

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant