Skip to content

Commit 29372c3

Browse files
added UTF-8 encoding to the Jinja2 template example
I followed this example and got nonsense characters instead of negative signs because I failed to specify UTF-8 encoding, as discussed in #4118
1 parent e6f9b31 commit 29372c3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/python/interactive-html-export.md

+5
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ You can insert Plotly output and text related to your data into HTML templates u
6464
```
6565
<!DOCTYPE html>
6666
<html>
67+
<head>
68+
<meta charset="utf-8" /> <!--It is necessary to use the UTF-8 encoding with plotly graphics to get e.g. negative signs to render correctly -->
69+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
70+
</head>
71+
6772
<body>
6873
<h1>Here's a Plotly graph!</h1>
6974
{{ fig }}

0 commit comments

Comments
 (0)