From 3d001d13e938fe3dc712e777e01804f8187c32f4 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Sun, 14 Oct 2007 01:42:27 +0200 Subject: [PATCH] ttxgettext: Handle UTF-8 input We need this e.g. for non-ASCII chars in the txt templates. For HTML it should be easier to use entities for that. --- bin/ttxgettext | 2 +- templates/txt/index.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/ttxgettext b/bin/ttxgettext index 5e3aced..2afeafc 100755 --- a/bin/ttxgettext +++ b/bin/ttxgettext @@ -93,7 +93,7 @@ foreach (@ARGV) { } print "msgid \"\"\nmsgstr \"\"\n". - "\"Content-Type: text/plain; charset=ASCII\\n\"\n". + "\"Content-Type: text/plain; charset=UTF-8\\n\"\n". "\"Content-Transfer-Encoding: 8bit\\n\"\n\n"; foreach my $msgid (@msgids) { diff --git a/templates/txt/index.tmpl b/templates/txt/index.tmpl index dca0910..226f03e 100644 --- a/templates/txt/index.tmpl +++ b/templates/txt/index.tmpl @@ -2,7 +2,7 @@ [% g('All %s Packages in "%s"', organisation, suite) %] [% g('Generated:') _ ' ' _ timestamp.string %] -[% g('Copyright (C)') _ ' ' _ copyright.years _ ' ' _ copyright.name %]; +[% g('Copyright ©') _ ' ' _ copyright.years _ ' ' _ copyright.name %]; [% g('See for the license terms.', license.url) %] [% FOREACH packages -%] -- 2.39.2