From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Pirotte Newsgroups: gmane.lisp.guile.user Subject: Re: displaying UTF8 characters in and out of a script (guile 2.0.5) Date: Sun, 16 Dec 2012 18:04:52 -0200 Message-ID: <20121216180452.0820b094@capac> References: <1355685754.7015.140661166743981.0F8ECFCA@webmail.messagingengine.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1355688333 7167 80.91.229.3 (16 Dec 2012 20:05:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Dec 2012 20:05:33 +0000 (UTC) Cc: guile-user@gnu.org To: msematman@myopera.com Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Dec 16 21:05:47 2012 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TkKT4-0002Tn-4C for guile-user@m.gmane.org; Sun, 16 Dec 2012 21:05:46 +0100 Original-Received: from localhost ([::1]:45518 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TkKSq-0005ad-N3 for guile-user@m.gmane.org; Sun, 16 Dec 2012 15:05:32 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TkKSl-0005aL-R1 for guile-user@gnu.org; Sun, 16 Dec 2012 15:05:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TkKSk-000498-NY for guile-user@gnu.org; Sun, 16 Dec 2012 15:05:27 -0500 Original-Received: from maximusconfessor.all2all.org ([62.58.108.13]:56112) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TkKSk-0003uZ-HM for guile-user@gnu.org; Sun, 16 Dec 2012 15:05:26 -0500 Original-Received: from localhost (unknown [192.168.0.2]) by maximusconfessor.all2all.org (Postfix) with ESMTP id 44838A04C0BE; Sun, 16 Dec 2012 21:05:03 +0100 (CET) Original-Received: from maximusconfessor.all2all.org ([192.168.0.1]) by localhost (maximusconfessor.all2all.org [192.168.0.2]) (amavisd-new, port 10024) with ESMTP id RIGqZ0kcXvxp; Sun, 16 Dec 2012 20:35:46 +0100 (CET) Original-Received: from capac (unknown [186.205.46.201]) by maximusconfessor.all2all.org (Postfix) with ESMTPSA id 8C25DA04C0BB; Sun, 16 Dec 2012 21:04:55 +0100 (CET) In-Reply-To: <1355685754.7015.140661166743981.0F8ECFCA@webmail.messagingengine.com> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 62.58.108.13 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:9746 Archived-At: Hello, > However, the same command in a script: >=20 > #!/usr/bin/guile \ > -s > #! > (display "=C4=86i=C4=87olina") >=20 > writes this out: ?i?olina you need to set the port encoding first [for further info see section '6.14= .1 Ports' of the manual]: #!/bin/sh # -*- mode: scheme; coding: utf-8 -*- exec guile -e main -s $0 "$@" !# (define (main args) (let ((port (current-output-port))) (set-port-encoding! port "utf-8") (display "=C4=86i=C4=87olina\n" port))) Cheers, David