List Info

Thread: Re: Regexp failure with utf8-flagged string and byte-flagged pattern




Re: Regexp failure with utf8-flagged string and byte-flagged pattern
user name
2007-09-21 10:56:23
> Moin,
>
> On Friday 21 September 2007 16:55:59 slavenrezic.de
wrote:
>> > Moin,
> [snip]
>> > I don't see "use utf8;" in your
example, so, in what encoding is the
>> > script?
>>
>> If "use utf8" is missing, then the script
encoding is usually
>> iso-8859-1.
>
> Ah. (doh!)
>
>> > Likewise, that means, in what encoding is the
$string and in what is
>> > the regexp?
>>
>> The "Ö" is in both cases the byte 0xd6.
>
> Ah. But your email says:
>
>  Return-Path:
>  
<perl5-porters-return-128928-nospam-abuse=bloodgate.comperl.org>
>  [snip]
>  MIME-Version: 1.0
>  Content-Type: text/plain;
>    charset="utf-8"
>  Content-Transfer-Encoding: 8bit
>  X-RT-Original-Encoding: utf-8
>
> Note the mail encodings. If one just copy&pastes
your example, one ends up
> with a UTF-8 encoded script 
>

The encoding was added by rt. I copied the script into vi
opened by perlbug
and hoped that the result would be reasonable.

For less confusion, here's the script *attached*, including
the debug
output proposed by Yves.

Regards,
    Slaven


  
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )