chickadee » chicken » port » port-encoding

port-encoding PORTprocedure

Returns the encoding used for reading and writing data from and to the given port. Encoding is currently one of the symbols utf-8, latin-1 or binary. Note that the encoding can be changed by using the (SRFI-17) setter procedure for this operation:

(set! (port-encoding PORT) ENCODING)