dotcomboom / Pituophis

Gopher client and server library for Python
https://dotcomboom.somnolescent.net/pituophis/
BSD 2-Clause "Simplified" License
45 stars 1 forks source link

Handle more.. obscure text encodings #15

Open dotcomboom opened 4 years ago

dotcomboom commented 4 years ago

Older servers (like this instance of GopherSurfer 1.1b3r2 I got running on my Power Mac G4 for testing) use text encodings that aren't compatible with UTF-8, causing an error. In my case, macroman, which Python can decode fine like resp.binary.decode('macroman') where resp is a Response object.

(As for the other way around, rest assured that clients like TurboGopher, Cyberdog and GopherVR work fine with Pituophis-based servers on OS 9.)