mirror of
https://github.com/golang/go.git
synced 2025-11-06 11:40:59 +00:00
codereview: handle UTF-8 in message descriptions
what a terrible way to implement strings R=r https://golang.org/cl/156116
This commit is contained in:
parent
d324a851c4
commit
caf15f855d
1 changed files with 1 additions and 1 deletions
|
|
@ -1310,7 +1310,7 @@ class FormParser(HTMLParser):
|
|||
self.handle_data("&" + name + ";")
|
||||
def handle_data(self, data):
|
||||
if self.curdata is not None:
|
||||
self.curdata += data
|
||||
self.curdata += data.decode("utf-8").encode("utf-8")
|
||||
|
||||
# XML parser
|
||||
def XMLGet(ui, path):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue