public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] use CGI::FormBuilder::Multi; ...
@ 2015-08-21 10:36 hw
  2015-08-21 19:18 ` Fernando Rodriguez
  0 siblings, 1 reply; 3+ messages in thread
From: hw @ 2015-08-21 10:36 UTC (permalink / raw
  To: gentoo-user


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?


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] use CGI::FormBuilder::Multi; ...
  2015-08-21 10:36 [gentoo-user] use CGI::FormBuilder::Multi; hw
@ 2015-08-21 19:18 ` Fernando Rodriguez
  2015-08-22 13:29   ` hw
  0 siblings, 1 reply; 3+ messages in thread
From: Fernando Rodriguez @ 2015-08-21 19:18 UTC (permalink / raw
  To: gentoo-user

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 
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

-- 
Fernando Rodriguez


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] use CGI::FormBuilder::Multi; ...
  2015-08-21 19:18 ` Fernando Rodriguez
@ 2015-08-22 13:29   ` hw
  0 siblings, 0 replies; 3+ messages in thread
From: hw @ 2015-08-22 13:29 UTC (permalink / raw
  To: gentoo-user



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 :)


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-08-22 13:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-21 10:36 [gentoo-user] use CGI::FormBuilder::Multi; hw
2015-08-21 19:18 ` Fernando Rodriguez
2015-08-22 13:29   ` hw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox