From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-166522-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 142441385B3
	for <garchives@archives.gentoo.org>; Sat, 22 Aug 2015 13:29:22 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 7AF261425B;
	Sat, 22 Aug 2015 13:29:17 +0000 (UTC)
Received: from sunflo-mx.v.h.gc-24.de (gc-24.de [46.227.95.21])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 073D8E08C8
	for <gentoo-user@lists.gentoo.org>; Sat, 22 Aug 2015 13:29:15 +0000 (UTC)
Received: from s-backup-03.v.h.gc-24.de ([192.168.220.17])
	by sunflo-mx.v.h.gc-24.de with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
	(Exim 4.84)
	(envelope-from <hw@gartencenter-vaehning.de>)
	id 1ZT8rC-00073N-D7
	for gentoo-user@lists.gentoo.org; Sat, 22 Aug 2015 15:29:14 +0200
Message-ID: <55D8792A.7010706@gartencenter-vaehning.de>
Date: Sat, 22 Aug 2015 15:29:14 +0200
From: hw <hw@gartencenter-vaehning.de>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] use CGI::FormBuilder::Multi; ...
References: <55D6FF4B.7010804@gartencenter-vaehning.de> <BLU436-SMTP49DB2D509A7D897775513D8D650@phx.gbl>
In-Reply-To: <BLU436-SMTP49DB2D509A7D897775513D8D650@phx.gbl>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Archives-Salt: 42f96aaf-e3bb-4a84-b5b8-97d63d160ab1
X-Archives-Hash: 6d039d97e580c916d225e7681c570ef1



Am 21.08.2015 um 21:18 schrieb Fernando Rodriguez:
> On Friday, August 21, 2015 12:36:59 PM hw wrote:
>>
>> Hi,
>>
>> any idea why Umlaute are not displayed correctly when they appear in
>> text generated from the FormBuilder module?
>>
>> When looking at the source of the form in the web browser, it has:
>>
>>
>> <?xml version="1.0" encoding="utf-8"?>
>> <!DOCTYPE html
>>           PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>>            "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>> <html xmlns="http://www.w3.org/1999/xhtml" lang="de_DE" xml:lang="de_DE">
>>
>> <head>
>> <title>Jobnummer erzeugen</title>
>> <link href="/styles/cgiforms.css" rel="stylesheet" type="text/css" />
>> <script type="text/javascript"><!-- hide from old browsers
>> [...]
>>
>> </script>
>> </head>
>> <body>
>> <h3>Jobnummer erzeugen</h3>
>> <noscript><span class="fb_invalid">Bitte aktivieren Sie JavaScript oder
>> benutzen Sie einen neueren Webbrowser.</span></noscript>
>> <p>Sie m�ssen Angaben f�r die <span
>> class="fb_required">hervorgehobenen</span> Felder machen.</p>
>> [...]
>>
>>
>> So the header says the encoding is UTF-8.  The message template is also
>> UTF-8:
>>
>> sunflo cgi-bin # file
>> /usr/lib/perl5/vendor_perl/5.20.1/CGI/FormBuilder/Messages/de.pm
>> /usr/lib/perl5/vendor_perl/5.20.1/CGI/FormBuilder/Messages/de.pm: Perl5
>> module source, UTF-8 Unicode text
>> sunflo cgi-bin #
>>
>>
>> Text with Umlauten I put myself into the form, like field labels, are
>> shown correctly.  I have put '@charset "utf-8";' at the beginning of the
>> style sheet, but it doesn't help.
>>
>> How could I fix this problem?
>
> This is probably not the best list for this question, but one possible

Likely not, yet it could be a Gentoo-specific problem.

> solution is to html encode it. You can use app-text/recode as follows:
>
> # echo 'ü' | recode utf8...html
> &uuml;
>
> Or just use the codes from:
> http://www.lsa.umich.edu/german/hmr/schreiben/umlaute/umlaute_ASCII_html.html

Thanks, I could patch the message template accordingly, that would solve 
the problem :)