Upgrading Postgres 12 to 13: 'pg_upgrade.exe' fails
The answer had to do with the option &quot;Beta: Use Unicode UTF-8 for worldwide language support&quot; being checked in my locale settings in Windows.
I disabled that option and restarted the computer, the upgrade went without issues after that.