Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Text-Textile CPAN distribution.

Report information
The Basics
Id: 7288
Status: new
Priority: 0/
Queue: Text-Textile

People
Owner: Nobody in particular
Requestors: mdxi [...] collapsar.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.6
Fixed in: (no value)



Subject: Text::Textile turns double-byte UTF-8 characters into 2 entity references
The subject basically says it all. When calling textile() on data which contains double-byte UTF-8 characters, those characters come out as &#byte1;&#byte2; instead of being passed through as plaintext. Text::Textile 0.6, Perl 5.8.3, Linux 2.6.6. I will try to make a fix for this myself, when I have time to do so.
From: Brad Choate
[guest - Sat Aug 7 19:49:32 2004]: Show quoted text
> The subject basically says it all. When calling textile() on data > which contains double-byte UTF-8 characters, those characters come > out as &#byte1;&#byte2; instead of being passed through as > plaintext. > > Text::Textile 0.6, Perl 5.8.3, Linux 2.6.6. > > I will try to make a fix for this myself, when I have time to do so.
(I just saw this, so I apologize for the lag.) To alter this behavior, you should use the OOP method to construct a Text::Textile object. Then you would call: $textile->char_encoding(0); to disable the entity-izing. It will limit itself to just encoding less-than, greater-than and quote characters. If you're using the latest release, you can pass a "char_encoding => 0" parameter to the constructor to accomplish the same thing. -Brad