Describe the bug
When running Backup/Restore or other maintenance operations on Windows, the Process Watcher shows garbled text in stdout/stderr when pgAdmin is configured to use external PostgreSQL binaries instead of the bundled runtime binaries.
Japanese encoding is CP932.
To Reproduce
OS: Windows 11 Pro (Japanese)
- Open File → Preferences → Paths → Binary Paths
- Set PostgreSQL Binary Path to an external PostgreSQL installation (e.g., C:\Program Files\PostgreSQL\16\bin)
- Run a Backup or Restore operation
- Open the Process Watcher
- Text in stdout/stderr appears as garbled text
Screenshots

Desktop (please complete the following information):
- OS: [Windows 11 Pro (Japanese)]
- pgAdmin version: [pgAdmin4 9.8]
- Mode: [Desktop]
- Package type: [Installer]
Additional details