Skip to content

Commit

Permalink
Merge "languages: encode for utf-8 in the appropriate places." into a…
Browse files Browse the repository at this point in the history
…ndroid-9.0
  • Loading branch information
bigbiff authored and Gerrit Code Review committed Apr 17, 2019
2 parents e605f1c + ceb0320 commit 7af2260
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/language_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def toprettyxml(xdoc, encoding):
for disnode in otherdisplay:
if disnode.nodeType == disnode.ELEMENT_NODE:
language.appendChild(disnode)
otherlang = disnode.firstChild.data
otherlang = disnode.firstChild.data.encode("utf-8")
print otherlang

# resources
Expand Down Expand Up @@ -128,7 +128,7 @@ def toprettyxml(xdoc, encoding):
resources.appendChild(others)
break
if found == False:
print "'%s' present in English and not in %s" % (child.attributes['name'].value, otherlang)
print "'%s' present in English and not in %s" % (child.attributes['name'].value.encode("utf-8"), otherlang)
notfound_err = "NOT FOUND " + child.toxml()
notfound_comment = doc.createComment(notfound_err)
resources.appendChild(notfound_comment)
Expand Down

0 comments on commit 7af2260

Please sign in to comment.