forked from Silias-Public/Sonnendach
fixed problem with encoding utf8
This commit is contained in:
parent
b232238c1a
commit
4c3951dd8e
|
@ -157,7 +157,7 @@ def search_adresses(adress_list, filename_adresslist, driver, mainText):
|
||||||
adress[columnIndexes[10]] = pv_Production75
|
adress[columnIndexes[10]] = pv_Production75
|
||||||
adress[columnIndexes[11]] = pv_Production100
|
adress[columnIndexes[11]] = pv_Production100
|
||||||
adress[columnIndexes[12]] = value_electricity_production
|
adress[columnIndexes[12]] = value_electricity_production
|
||||||
adress_file = open(filename_adresslist, "w")
|
adress_file = open(filename_adresslist, "w", encoding="utf-8")
|
||||||
new_line_string = ""
|
new_line_string = ""
|
||||||
for j in adress:
|
for j in adress:
|
||||||
new_line_string = new_line_string + j + file_split_char
|
new_line_string = new_line_string + j + file_split_char
|
||||||
|
@ -182,7 +182,7 @@ def search_adresses(adress_list, filename_adresslist, driver, mainText):
|
||||||
def read_adresslist(filename_adresslist):
|
def read_adresslist(filename_adresslist):
|
||||||
returnvalues = []
|
returnvalues = []
|
||||||
try:
|
try:
|
||||||
adress_file = open(filename_adresslist, "r")
|
adress_file = open(filename_adresslist, "r", encoding="utf-8")
|
||||||
adress_list = adress_file.read().splitlines()
|
adress_list = adress_file.read().splitlines()
|
||||||
adress_file.close()
|
adress_file.close()
|
||||||
returnvalues.append(True)
|
returnvalues.append(True)
|
||||||
|
|
Loading…
Reference in New Issue