From: Richard D. [ H. ] <ri...@do...> - 2005-10-16 07:54:08
|
Hi Sven, Interesting - are you going to try commenting out the 'use utf8' line in Locale::Maketext? This should avoid the text being interpreted as UTF-8, without which the data is being corrupted. Commenting out the lines below just prevents the error being raised, but still leaves the problem in the topic text. Cheers, Richard > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > more info > > the apache error log says > > ******************************** > Malformed UTF-8 character (unexpected non-continuation byte 0x72 after > start byte 0xf6) in substitution iterator at > /home/virtual/site2/fst/home/dev > elop/twikisvn/lib/TWiki.pm line 577. > TWiki::UI::__ANON__('Malformed UTF-8 character (unexpected > non-continuation byte 0x72...') called at > /home/virtual/site2/fst/home/develop/tw > ikisvn/lib/TWiki.pm line 577 > TWiki::writeCompletePage('TWiki=HASH(0x80fbbf0)', '<!DOCTYPE > html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "...', 'edit', > 'text/html' > ) called at > /home/virtual/site2/fst/home/develop/twikisvn/lib/TWiki/UI/Edit.pm line > 321 > TWiki::UI::Edit::edit('TWiki=HASH(0x80fbbf0)') called at > /home/virtual/site2/fst/home/develop/twikisvn/lib/TWiki/UI.pm line 97 > TWiki::UI::__ANON__() called at > /home/virtual/site2/fst/home/develop/twikisvn/lib/CPAN/lib///Error.pm > line 387 > eval {...} called at > /home/virtual/site2/fst/home/develop/twikisvn/lib/CPAN/lib///Error.pm > line 379 > Error::subs::try('CODE(0x89c2a4c)', 'HASH(0x89df3fc)') called at > /home/virtual/site2/fst/home/develop/twikisvn/lib/TWiki/UI.pm line 146 > TWiki::UI::run('CODE(0x8230e88)') called > > > and line 577 is > $text =~ s/([\t ]?)[ \t]*<\/?(nop|noautolink)\/?>/$1/gis; > > > > and if I comment out as below > > sub writeCompletePage { > my ( $this, $text, $pageType, $contentType ) = @_; > > ASSERT($this->isa( 'TWiki')) if DEBUG; > > if( ($contentType||'') ne 'text/plain' ) { > # # Remove <nop> and <noautolink> tags > # $text =~ s/([\t ]?)[ \t]*<\/?(nop|noautolink)\/?>/$1/gis; > # $text .= "\n" unless $text =~ /\n$/s; > # spamProof( $text ); > } > > > I can then edit > > if I just comment out the nop line, it then dies in the spamProof.... > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2 (GNU/Linux) > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > > iD8DBQFDUUBfPAwzu0QrW+kRAlDRAJ9bTeerooPJANtQ3A+Q11HEq6tYPgCgsNlW > 9MENk8kAameAdUBTyYhsap0= > =h53B > -----END PGP SIGNATURE----- > > |