Skip to content

Commit c2da184

Browse files
committed
Add meta charset data to the head of html presentations
1 parent 0064e85 commit c2da184

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3277,6 +3277,7 @@ def create_presentation(
32773277
new_presentation = (
32783278
'<html>\n'
32793279
'<head>\n'
3280+
'<meta charset="utf-8">\n'
32803281
'<link rel="stylesheet" href="%s">\n'
32813282
'<link rel="stylesheet" href="%s">\n'
32823283
'<style>\n'
@@ -3905,7 +3906,7 @@ def save_chart(self, chart_name=None, filename=None):
39053906
raise Exception("Chart {%s} does not exist!" % chart_name)
39063907
if not filename.endswith('.html'):
39073908
raise Exception('Chart file must end in ".html"!')
3908-
the_html = ""
3909+
the_html = '<meta charset="utf-8">\n'
39093910
for chart_data_point in self._chart_data[chart_name]:
39103911
the_html += chart_data_point
39113912
the_html += (

0 commit comments

Comments
 (0)