Skip Menu |

This queue is for tickets about the BBCode-Parser CPAN distribution.

Report information
The Basics
Id: 23724
Status: resolved
Priority: 0/
Queue: BBCode-Parser

People
Owner: donald.king [...] chronos-tachyon.net
Requestors: andrey [...] kostenko.name
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: Escaping
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
Subject: Re: [rt.cpan.org #23724] Escaping
Date: Fri, 01 Dec 2006 01:57:03 -0600
To: bug-BBCode-Parser [...] rt.cpan.org
From: Chronos Tachyon <chronos [...] chronos-tachyon.net>
Костенко Андрей 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 &apos;). All other characters are passed through as-is. -- Chronos Tachyon http://chronos-tachyon.net/ -- WWED?
Subject: Re: [rt.cpan.org #23724] Escaping
Date: Fri, 1 Dec 2006 11:37:06 +0200
To: bug-BBCode-Parser [...] rt.cpan.org
From: "Андрей Костенко" <gugu.kostenko [...] gmail.com>
thanks 2006/12/1, Chronos Tachyon via RT <bug-BBCode-Parser@rt.cpan.org>: Show quoted text
> > > <URL: http://rt.cpan.org/Ticket/Display.html?id=23724 > > > Костенко Андрей via RT wrote:
> > 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 &apos;). All other characters > are passed through as-is. > > -- > Chronos Tachyon > http://chronos-tachyon.net/ -- WWED? > > >