diff --git a/platforms/ios/build_framework.py b/platforms/ios/build_framework.py index 0ce56321bf..09ac0197d8 100755 --- a/platforms/ios/build_framework.py +++ b/platforms/ios/build_framework.py @@ -406,11 +406,11 @@ class Builder: for dirname, dirs, files in os.walk(os.path.join(dstdir, "Headers")): for filename in files: filepath = os.path.join(dirname, filename) - with open(filepath) as file: + with codecs.open(filepath, "r", "utf-8") as file: body = file.read() body = body.replace("include \"opencv2/", "include \"" + name + "/") body = body.replace("include