From 35cbbeb45711353ea3e29927199bfe36889b7523 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 12 Sep 2016 19:54:28 +0300 Subject: [PATCH] Fix downloader with Unicode path // Resolve #771 --- examples | 2 +- platformio/downloader.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples b/examples index aa8c45e2..2f79bc25 160000 --- a/examples +++ b/examples @@ -1 +1 @@ -Subproject commit aa8c45e2dbf438829efe8ed269c26ea4e16a5073 +Subproject commit 2f79bc25f8be67961ef3bb2da4ee47cb9a1cf18e diff --git a/platformio/downloader.py b/platformio/downloader.py index f35aeda4..b96edda8 100644 --- a/platformio/downloader.py +++ b/platformio/downloader.py @@ -41,6 +41,7 @@ class FileDownloader(object): if disposition and "filename=" in disposition: self._fname = disposition[disposition.index("filename=") + 9:].replace('"', "").replace("'", "") + self._fname = self._fname.encode("utf8") else: self._fname = url.split("/")[-1]