By default, ports start in a simple coding -- you need to switch the coding after the port is opened:
(port/set-coding port 'utf-8) Thank you! This is exactly what I need. I thought that Scheme ports have no notion of "encoding" and deal only with bytes, not characters. It will be good if `port/set-coding' procedure is mentioned in the MIT/GNU Scheme Reference, but my English is very poor to suggest a documentation patch. Thanks a lot for your help and time. -- "Every non-free program has a lord, a master -- and if you use the program, he is your master." --RMS ___________________________________________________________ Ако не отговарям на писмата Ви: http://6lyokavitza.org/mail _______________________________________________ MIT-Scheme-users mailing list MIT-Scheme-users@gnu.org http://lists.gnu.org/mailman/listinfo/mit-scheme-users