mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
Bug 1087248 - [mozlog] Fix encoding for debug in HTML formatter such as page source. r=jgraham
This commit is contained in:
parent
b4d7f41cf5
commit
706c1d8dec
@ -124,7 +124,7 @@ class HTMLFormatter(base.BaseFormatter):
|
||||
# use base64 to avoid that some browser (such as Firefox, Opera)
|
||||
# treats '#' as the start of another link if the data URL contains.
|
||||
# use 'charset=utf-8' to show special characters like Chinese.
|
||||
href = 'data:text/plain;charset=utf-8;base64,%s' % base64.b64encode(content)
|
||||
href = 'data:text/plain;charset=utf-8;base64,%s' % base64.b64encode(content.encode('utf-8'))
|
||||
links_html.append(html.a(
|
||||
name.title(),
|
||||
class_=name,
|
||||
|
Loading…
Reference in New Issue
Block a user