Default_escape_flags => 'h'

Hi,

Oups, I did it again :frowning:
We’ve just upgraded perl to 5.8.0 on box with RT 2.0.15 and our cyrillic
messages look funny. As I found in archive it is due to “The
HTML::Entities module assumes that text is in the ISO-8859-1 character
set with all version of Perl before 5.8.0, and Unicode for version 5.8.0
and greater.”

Ok, what shoud be fixed in order to get it running? As I understand 'n’
flag is not an option
(http://lists.fsck.com/pipermail/rt-devel/2003-January/002943.html)
To check RT3 I need perl 5.8.0, so downgrade is not option too :frowning:

Sergey.

have a look at how rt3 supplies its own escaping method in
lib/RT/Interface/Web.pm. you might be able to us that technique to
"back out" the difference in HTML::EntitiesOn Wed, Apr 02, 2003 at 07:31:09PM +0400, Sergey Gurov wrote:

Hi,

Oups, I did it again :frowning:
We’ve just upgraded perl to 5.8.0 on box with RT 2.0.15 and our cyrillic
messages look funny. As I found in archive it is due to “The
HTML::Entities module assumes that text is in the ISO-8859-1 character
set with all version of Perl before 5.8.0, and Unicode for version 5.8.0
and greater.”

Ok, what shoud be fixed in order to get it running? As I understand 'n’
flag is not an option
(http://lists.fsck.com/pipermail/rt-devel/2003-January/002943.html)
To check RT3 I need perl 5.8.0, so downgrade is not option too :frowning:

Sergey.


rt-devel mailing list
rt-devel@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-devel

http://www.bestpractical.com/rt – Trouble Ticketing. Free.

Hi,

As I can’t answer the main question, I can provide an alternate path.
You can install two versions of perl simulaneously on the same machine. It
works! and it is almost properly documented on the perl web site.
Then, you only have to be careful with the path you provide in your binaries
so they use the proper perl executable file. Perl itself takes care of using
the right version for modules as they are stored in version specific
directories, the newer superseeding the older when necessary.

-----Message d’origine-----De : Sergey Gurov [mailto:cec2000@mail.ru]
Envoye : mercredi 2 avril 2003 17:31
A : rt-devel@lists.fsck.com
Objet : [rt-devel] default_escape_flags => ‘h’

Hi,

Oups, I did it again :frowning:
We’ve just upgraded perl to 5.8.0 on box with RT 2.0.15 and our cyrillic
messages look funny. As I found in archive it is due to “The
HTML::Entities module assumes that text is in the ISO-8859-1 character
set with all version of Perl before 5.8.0, and Unicode for version 5.8.0
and greater.”

Ok, what shoud be fixed in order to get it running? As I understand 'n’
flag is not an option
(http://lists.fsck.com/pipermail/rt-devel/2003-January/002943.html)
To check RT3 I need perl 5.8.0, so downgrade is not option too :frowning:

Sergey.

rt-devel mailing list
rt-devel@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-devel

have a look at how rt3 supplies its own escaping method in
lib/RT/Interface/Web.pm. you might be able to us that technique to
"back out" the difference in HTML::Entities

Umm. May I put rt2/local/lib/RT/Interface/Web.pm (I meen local) like
html folder?
It seems not working.

Sergey.

Wish you were here…
We did upgraded our perl. And installing 5.6.1 once more… I would
better fix Web.pm :slight_smile:

Sergey.

Hi,

As I can’t answer the main question, I can provide an alternate path.
You can install two versions of perl simulaneously on the same machine.
It works! and it is almost properly documented on the perl web site.

Then, you only have to be careful with the path you provide in your
binaries so they use the proper perl executable file. Perl itself takes
care of using the right version for modules as they are stored in
version specific directories, the newer superseeding the older when
necessary.

have a look at how rt3 supplies its own escaping method in
lib/RT/Interface/Web.pm. you might be able to us that technique to
"back out" the difference in HTML::Entities

Thanks a lot, Jesse.
RT rocks as always :slight_smile:

Sergey

Here is the diff of /rt2/lib/RT/InterfaceWeb.pm (2.0.15) in case
somebody else follow us:
101a102

$ah->interp->set_escape( h => \&RT::Interface::Web::EscapeUTF8 );

107a109,126

=head2 EscapeUTF8 SCALARREF

does a css-busting but minimalist escaping of whatever html you’re
passing in.