Костенко Андрей via RT wrote:
Show quoted text> Thu Nov 30 11:15:27 2006: Request 23724 was acted upon.
> Transaction: Ticket created by GUGU
> Queue: BBCode-Parser
> Subject: Escaping
> Broken in: (no value)
> Severity: Important
> Owner: Nobody
> Requestors: gugu.kostenko@gmail.com
> Status: new
> Ticket <URL:
http://rt.cpan.org/Ticket/Display.html?id=23724 >
>
>
> BBCode::Parser now by default escapes all non-ASCII characters. But if I
> use non-english language, all my text translated into the shit. By the
> XML standard escaped must be only <, > , &, "... etc
>
>
Well, that's because it's outputting HTML, not XML...
Nevertheless, I've tweaked the HTML escaping function to do only the
bare minimum, instead of using HTML::Entities and escaping everything
outside the ASCII range. (I had it that way for the sake of lousy
programmers who forgot to set their filehandles to UTF-8 mode, not to
upset anyone using a non-Latin alphabet.)
The new 0.34 release should fix the problem, which I've just pushed to
CPAN. It only escapes 5 characters: & < > " ' (the last one
numerically, since HTML doesn't support '). All other characters
are passed through as-is.
--
Chronos Tachyon
http://chronos-tachyon.net/ -- WWED?