[plt-scheme] Read file with cp1251 encoding

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed May 23 17:37:48 EDT 2007

At Wed, 23 May 2007 10:44:06 +0400, wwall wrote:
>   I have file in cp1251 encoding, how i must read it with
>   (open-input-file) and save national char?

Use `reencode-input-port' from `(lib "port.ss")', supplying
"cp1252" as the encoding.

For output, if you don't want UTF-8, use `reencode-output-port'.


Posted on the users mailing list.