Re: [mp2] utf8 data garbled on second + subsequent loads

[prev] [thread] [next] [Date index for 2005/02/11]

From: Roman =?iso-8859-2?B?VmG57ehlaw==?=
Subject: Re: [mp2] utf8 data garbled on second + subsequent loads
Date: 07:48 on 11 Feb 2005
I expect multiple decoding of the same text. Try to use conditional decoding

	$text = Encode::decode_utf8($text) if !Encode::is_utf8($text);

or let us look at your code. If you are sure that source data encoding is
utf8 and only utf8 flag is missing it is possible to use (but probably not 
suggested)

	Encode::_utf8_on($text)

  Roman


On Thu, Feb 10, 2005 at 11:51:28PM +0000, angie ahl wrote:
> Firstly may I appologise for the length of this, I fear I won't get to
> the bottom of it otherwise.
> 
> All of the following is being done on OS X 10.3
> Server: Apache/2.0.52 (Unix) mod_perl/1.999.21 Perl/v5.8.6
> 
> I noticed today that some of my utf8 data was becoming corrupted but
> couldn't see why.
> Hebrew and Arabic were fine but characters like ü were becoming garbled.
[...]

        -- 
         best regards
  Ing. Roman Vasicek

 software developer
+----------------------------------------------------------------------------+
 PetaMem s.r.o., Ocelarska 1, 190 00 Praha 9 - Liben, Czech Republic
 http://www.petamem.com/

Re: [mp2] utf8 data garbled on second + subsequent loads
Roman =?iso-8859-2?B?VmG57ehlaw==?= 07:48 on 11 Feb 2005

Re: [mp2] utf8 data garbled on second + subsequent loads
Roman =?iso-8859-2?B?VmG57ehlaw==?= 12:56 on 11 Feb 2005

Re: [mp2] utf8 data garbled on second + subsequent loads
Roman =?iso-8859-2?B?VmG57ehlaw==?= 16:10 on 11 Feb 2005

Generated at 11:21 on 20 Feb 2005 by mariachi v0.52