KOI8-R encoding in reports

Francis J. Lacoste flacoste at logreport.org
Thu Oct 3 20:07:54 CEST 2002


On mer, 2002-10-02 at 09:49, Vladimir Antropov wrote:
> Hello!
> 
> I am trying to create my own report. It would be nice to make it in
> Russian, but I cannot generate it.
> 


I know this is a lame answer, but Lire currently only supports ASCII
encoding. (Even ISO-8859-1 isn't supported). The problem is related to
the fact that XML::Parser gives us only UTF-8 encoded strings which is
very inconvenient to work with. It's kind of lame that XML::Parser has
encoding table to read other charsets to UTF-8 but doesn't give us
access to a reverse mapping. We will get to fix this eventually
(probably using a CPAN encoding module). Full I18N of Lire has been on
our TODO list for some time now, but nobody had time to work on it yet.

In the mean time, if you only care about HTML and PDF output (i.e. you
don't care about ASCII or Excel95 reports) you can easily fix this
problem by changing the encoding of the generated report to your
encoding. 

Look at line 333 of all/lib/Lire/Report.pm, there is a FIXME comment
there. You just have to put your encoding there and xsltproc will
happily format your report in Russian. 

(Using another encoding than ASCII in the report specifications is OK
and works as expected.)

Hopes this help.


Francis J. Lacoste

-- 
Francis J. Lacoste              . .           http://www.logreport.org
/^LogReport$/               . .               flacoste at logreport.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.logreport.org/pipermail/questions/attachments/20021003/b8d8fd13/attachment.bin 


More information about the Questions mailing list