diff --git a/scripts/update_api.sh b/scripts/update_api.sh index 85147658f..616df730c 100755 --- a/scripts/update_api.sh +++ b/scripts/update_api.sh @@ -6,7 +6,7 @@ function update_api { generate_script="$2" git checkout HEAD -- "$file_name" - if python "$generate_script" > .x; then + if PYTHONIOENCODING=utf-8 python "$generate_script" > .x; then mv .x "$file_name" pre-commit run --files $file_name echo "Regenerated APIs"