If you’re facing strange encoding problems or broken tools after updating to Flutter 3.3+ (e.g., gibberish output, JDK breaking, or locale issues), check your system environment variables.
I found that the variable:
__PSLockDownPolicy = 4
was set in my system environment.
Simply delete this variable