Re: [MP2] "here" documents and UTF-8 and output filters

2004-02-25 Thread Stas Bekman
please post a proper bug report, Matthew. We don't even know which mp2 do you use. A complete *real* short example is expected as well. __ Stas BekmanJAm_pH --> Just Another mod_perl Hacker http://stason.org/ mod_

Re: [MP2] "here" documents and UTF-8 and output filters

2004-02-25 Thread Matthew Darwin
Stas Bekman wrote: Matthew Darwin wrote: Stas Bekman wrote: Ah, I suppose this is a typing error: > my $string < ... > ... > EOF > print $string; you miss '=' Sorry... writing up exmaples has inherent dangers. Also try adding utf8::encode($string); Tried that already. No help. -- Matth

Re: [MP2] "here" documents and UTF-8 and output filters

2004-02-25 Thread Stas Bekman
Matthew Darwin wrote: Stas Bekman wrote: Ah, I suppose this is a typing error: > my $string < ... > ... > EOF > print $string; you miss '=' Also try adding utf8::encode($string); Finally your bug report is missing. Please submit one, including a real example that we can try to reproduce the pro

Re: [MP2] "here" documents and UTF-8 and output filters

2004-02-25 Thread Matthew Darwin
Stas Bekman wrote: Can you reproduce this problem outside of mp2? just a plain perl program? No. Any difference if you add: use Apache::RequestIO (); binmode(STDOUT, ':utf8'); # Apache::RequestRec::BINMODE() Yes, I get different garbage. before you do the print. Or if you use $r->print() instead

Re: [MP2] "here" documents and UTF-8 and output filters

2004-02-25 Thread Stas Bekman
Matthew Darwin wrote: I'm not sure if anyone has noticed this, so I thought I'd post. If I create a string using here syntax: my $string < And $string contains UTF-8 characters they get mangled somehow when they go through the output chain. However, if I build the same document using my $strin

Re: [MP2] "here" documents and UTF-8 and output filters

2004-02-25 Thread Ged Haywood
Hello there, On Wed, 25 Feb 2004, Matthew Darwin wrote: > If I create a string using here syntax: > my $string < ... > EOF > print $string; > > And $string contains UTF-8 characters they get mangled somehow when they > go through the output chain. > > However, if I build the same document using >

[MP2] "here" documents and UTF-8 and output filters

2004-02-25 Thread Matthew Darwin
I'm not sure if anyone has noticed this, so I thought I'd post. If I create a string using here syntax: my $string < And $string contains UTF-8 characters they get mangled somehow when they go through the output chain. However, if I build the same document using my $string; $string .= "..." $s