Skip to content

Commit

Permalink
languages: encode for utf-8 in the appropriate places.
Browse files Browse the repository at this point in the history
Change-Id: I74308aae75098aa1a47b7f11b7c3214fe4e6d58e
  • Loading branch information
bigbiff committed Apr 15, 2019
1 parent 1da568f commit ceb0320
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/language_helper.py
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 ceb0320

Please sign in to comment.