about summary refs log tree commit diff stats
path: root/src/client.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.nim')
-rw-r--r--src/client.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client.nim b/src/client.nim
index 7ec5b3de..2de2a639 100644
--- a/src/client.nim
+++ b/src/client.nim
@@ -45,7 +45,7 @@ proc interruptError() =
 
 proc getPage(client: Client, url: Url): tuple[s: Stream, contenttype: string] =
   if url.scheme == "file":
-    let path = url.path.serialize()
+    let path = url.path.serialize_unicode()
     result.contenttype = guessContentType(path)
     result.s = newFileStream(path, fmRead)
   elif url.scheme == "http" or url.scheme == "https":