0

I am reading this file with stopwords: https://github.com/solariz/german_stopwords/blob/master/german_stopwords_plain.txt with Python.

This is my code:

import csv

with open('German_Stopwords.txt','r') as f:
    reader = csv.reader(f)
    for row in reader:
        print (row)

But when I read it with Python it is not correct UTF-8 anymore. As other threads suggested I wrote

# -*- coding: utf-8 -*-

At the top of the file, but it didnt help. I am using Python 3.

Panagiotis Kanavos
  • 120,703
  • 13
  • 188
  • 236
gython
  • 865
  • 4
  • 18

0 Answers0