[rt-devel] Re: RT 2.1.56 (wrong charset)

Jesse Vincent jesse at bestpractical.com
Sat Jan 4 18:18:38 EST 2003



On Sat, Jan 04, 2003 at 02:35:43PM -0800, Stanislav Sinyagin wrote:
> Hi, 
> 
> That means that RT sends incorrect character set information
> (if it sends it at all). 
> First is that the charset information should be 
> sent in HTTP header, and the second that the charset depends 
> on Perl version. 
> 
> Due to default_escape_flags => 'h', 
> Mason uses HTML::Entities, which acts differently depending on the 
> perl version:
> http://search.cpan.org/author/GAAS/HTML-Parser-3.26/lib/HTML/Entities.pm
> 
> Thus, there must be a line like this:
> 
>   $charset = $] > 5.007 ? 'UTF-8' : 'ISO-8859-1';
> 
> and a line like this: 
>   
>   $r->header_out( 'Charset', $charset );

So. I was fairly sure that autrijus had set this up. Autrijus?


> I suppose the proper place for these is in html/Elements/Header. 
> 
> And the final thing is, that perhaps default_escape_flags => 'h' 
> is not the correct way of handling non-ascii characters, especially 
> for such languages as Russian. 
> I suppose it's better to suppress Mason's escaping, and 
> manage it internally. 

No. Mason provides a callback for html entity escaping. We need to put
together a utf8 callback.

> 
> Regards,
> Stan
> 
> 
> 
> --- Stefan Fischer <info at debian.homeunix.net> wrote:
> > All the past development snapshots don't like german umlaut's. I get this:
> >  " ????ber die Zeit steigt die Priorit????t bis:  " (Over time, priority
> > moves toward) and it should be "?ber die Zeit steigt die Priorit?t bis:".
> > Wehre i go wrong here?
> 
> _______________________________________________
> rt-devel mailing list
> rt-devel at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-devel
> 

-- 
»|« http://www.bestpractical.com/rt  -- Trouble Ticketing. Free.



More information about the Rt-devel mailing list