[Catalyst] Re: Patch for Catalyst::Plugin::Unicode::Encoding

Aristotle Pagaltzis pagaltzis at gmx.de
Wed Mar 19 07:13:57 GMT 2008


* Tatsuhiko Miyagawa <miyagawa at gmail.com> [2008-03-19 07:20]:
> Some modules like XML::LibXML adds UTF-8 flags regardless of if
> the characters to handle are composed of latin-1 range (like
> Encode::decode_utf8 instead of utf8::decode), and that's pretty
> much realistic and sane approach I think.

Yes. If the flag is to have any use at all, then it has to have
the semantic of distinguishing character vs byte strings.

> I agree with Bill that the plugin trying to decode already
> utf-8 flagged string doesn't make any sense, but furthermore, I
> wonder under which circumstance the plugin tries to decode
> already-utf8-flagged strings.
> 
> I'd say that's the root problem.

Yes; and that’s exactly what Jon said.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>



More information about the Catalyst mailing list