Skip to content

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

Description

@b1139
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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions