mirror of
https://github.com/golang/go
synced 2024-11-22 01:14:40 -07: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
@ -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…
Reference in New Issue
Block a user