From 151a45b5a424a668e80ca84491bce7a7da5646de Mon Sep 17 00:00:00 2001 From: Gitea Date: Fri, 12 Aug 2022 14:29:59 +0200 Subject: [PATCH] utf-8 --- pppadump/commands/index.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pppadump/commands/index.py b/pppadump/commands/index.py index 48408dd..66e1b0e 100644 --- a/pppadump/commands/index.py +++ b/pppadump/commands/index.py @@ -340,14 +340,11 @@ def main (args): # strip output dir.... relpath = Path(*vpath.parts[1:]) - v["url"] = os.path.join(indexurl, relpath) - - - + v["url"] = os.path.join(indexurl, relpath.as_posix()) if args.output: - with open(args.output, "w") as f: + with open(args.output, "w", encoding="utf-8") as f: print (template.render(vars(args)), file=f) else: print (template.render(vars(args)))