texi2html-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texi2html-bug] Problems with texi2html and Japanese navigation bars


From: Reinhold Kainhofer
Subject: Re: [Texi2html-bug] Problems with texi2html and Japanese navigation bars
Date: Tue, 3 Feb 2009 00:26:39 +0100
User-agent: KMail/1.11.0 (Linux/2.6.27-11-generic; KDE/4.2.0; i686; ; )

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Montag, 2. Februar 2009 16:37:09 Patrice Dumas wrote:
> On Sat, Jan 24, 2009 at 09:01:28PM +0100, Reinhold Kainhofer wrote:
> > The strings are translated, but unfortunately they are not written out in
> > UTF-8 to the html file, [...] For example, the [Top] link in the navbars
> > is displayed as [å†’é ­] (that's an a with a ring diacritic above, a
> > dagger, an apostrophe and an e with an acute accent) instead of the
> > correct two-glyph [冒頭].
>
> I can reproduce that. I haven't found a fix, however. When I send the
> output on stderr it is correctly utf8 encoded. I tried to add some
> use utf8;
> now and there, but it didn't changed anything. I am quite lost.

Yes, "use utf8;" doesn't help. However, "use encoding 'utf8';" does solve the 
issue. 

The thing is that the translations are inserted as utf-8 into the program 
code, so perl needs to interpret the whole script as utf8 (the console is set 
to utf8 by default, so when it gets the two-byte sequence, it automatically 
displays it correctly as utf8, even though the string is not utf; the file 
writer on the other hand seems to try to do some more magic and messes things 
up). I'm still wondering why "use utf8;" doesn't work, though, while "use 
encoding 'utf8';"does..

Cheers,
Reinhold

- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, address@hidden, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFJh4EwTqjEwhXvPN0RAsk8AJ97CyPmum7hKKegoABcIKdEC8uVOwCgsqLH
pXw3Y03XORrNnDQeFKPenoQ=
=1j6k
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]