Skip to content

Commit dd40129

Browse files
committed
Fix #4019
Explicitly encode plotly.min.js content as utf-8, since get_plotlyjs returns utf-8 decoded content.
1 parent dfef73e commit dd40129

File tree

1 file changed

+1
-1
lines changed
  • packages/python/plotly/plotly/io

1 file changed

+1
-1
lines changed

Diff for: packages/python/plotly/plotly/io/_html.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ def write_html(
542542
bundle_path = path.parent / "plotly.min.js"
543543

544544
if not bundle_path.exists():
545-
bundle_path.write_text(get_plotlyjs())
545+
bundle_path.write_text(get_plotlyjs(), encoding="utf-8")
546546

547547
# Handle auto_open
548548
if path is not None and full_html and auto_open:

0 commit comments

Comments
 (0)