Skip to content

Commit 486be6b

Browse files
committed
Fixed encoding issue on SVG export in certain cases.
1 parent e092e04 commit 486be6b

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGES.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11

2+
Release 1.7.5
3+
=========================================
4+
5+
* **BUGFIX:** Fixed encoding issue when handling certain exported SVGs from the Node Export Server.
6+
7+
--------------------
8+
29
Release 1.7.4
310
=========================================
411

highcharts_core/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.7.4'
1+
__version__ = '1.7.5'

highcharts_core/headless_export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ def request_chart(self,
813813
with open(filename, 'wb') as file_:
814814
file_.write(result.content)
815815
elif filename and self.format_ == 'svg':
816-
content = str(result.content, encoding = 'utf-8')
816+
content = str(result.content, encoding="utf-8").replace("\u200b", " ")
817817
with open(filename, 'wt') as file_:
818818
file_.write(content)
819819

0 commit comments

Comments
 (0)