Fixing Python UnicodeDecodeError in Logging Handlers - Nginx 502 Bad Gateway Docker: Causes and Solutions-Git Bash Python Command Missing Solution

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.