file = codecs.open(data_path, encoding='utf-8') code example
Example: python open encoding utf-8
from io import open
f = open("test", mode="r", encoding="utf-8")
from io import open
f = open("test", mode="r", encoding="utf-8")