Skip to content
Snippets Groups Projects
Commit 29822d35 authored by David Rouquet's avatar David Rouquet
Browse files

modif encodage

parent 70c98cb0
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,8 @@ def construct_while(g: Graph, query: str): ...@@ -37,7 +37,8 @@ def construct_while(g: Graph, query: str):
pass pass
def markFileDown(filepath): def markFileDown(filepath):
with open(filepath, 'r', encoding='ISO 8859-1') as f0: print(filepath)
with open(filepath, 'r') as f0:
str0 = f0.read().replace("</p>", "</p>@BR@") str0 = f0.read().replace("</p>", "</p>@BR@")
tmp = tempfile.NamedTemporaryFile(suffix=".html") tmp = tempfile.NamedTemporaryFile(suffix=".html")
with open(tmp.name, 'w') as f: with open(tmp.name, 'w') as f:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment