Closed sethtroisi closed 5 years ago
Debug and root was fun so I thought I'd write it down.
[remote 127.0.0.1:35974] 'ascii' codec can't decode byte 0xe4 in position 54: ordinal not in range(128)
PB[丁 伟]
, this is why the name starts with a "-"open(..).read()
works if I add encoding="utf-8"
locale.getpreferredencoding(False) => ANSI_X3.4-1968
locale.getpreferredencoding(False) => UTF-8
The fix is to specify lang=en_US.UTF-8
to WSGIDaemonProcess in my apach2 config
https://cloudygo.com/v14-19x19/puzzles/ is failing. https://cloudygo.com/v14-19x19/puzzles/1 and https://cloudygo.com/v14-19x19/puzzles/2 work http://localhost:5002/v14-19x19/puzzles/ also works.