win32/replace.py: Fix replacing items in files with UTF-8 content
authorChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 10 May 2017 01:17:29 +0000 (18:17 -0700)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 10 May 2017 01:32:57 +0000 (18:32 -0700)
commite106b75b25c332cc55f7fad83a7e7ff124309b18
tree948bd9bc73f45119c8184b5f4942c985bc8d256a
parentc56660441e778a31e80271095deb4c89a74afd76
win32/replace.py: Fix replacing items in files with UTF-8 content

Some files that this script will process might have UTF-8 items in
there, which can cause problems on Python 3.x as it is more strict and
careful on unicode issues.  Fix this by:

-Doing what we did before on Python 2.x
-Opening the file with encoding='utf-8' on Python 3.x
win32/replace.py