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: Patrice Dumas
Subject: Re: [Texi2html-bug] Problems with texi2html and Japanese navigation bars
Date: Tue, 3 Feb 2009 01:57:54 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

On Tue, Feb 03, 2009 at 12:26:39AM +0100, Reinhold Kainhofer wrote:
> 
> Yes, "use utf8;" doesn't help. However, "use encoding 'utf8';" does solve the 
> issue. 

Where did you put it? I tried in the ja file, but it didn't changed
anything.

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

The strange thing is that it works for regular text. In that case, the 
following are called on the out filehandle:

binmode(FILE, ':utf8');
binmode(FILE,':encoding(utf-8-strict)');

Also the fact that it works when outputting in the console is strange 
since it makes it look like that the character were rightly ingested
by perl and decoded to the internal perl encoding.

--
Pat




reply via email to

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