perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <>
Subject Re: [mp2] "Unrecognized character" error when running scripts in utf-8
Date Sun, 07 Nov 2004 20:39:27 GMT
Markus Wichitill wrote:
> Stas Bekman wrote:
>> Markus Wichitill wrote:
>>> No, Perl can deal with a BOM at the start of a file. But 
>>> convert_script_to_compiled_handler() puts the BOM in the middle of 
>>> the string that is eval'ed. A bunch of raw bytes has no place in the 
>>> middle of a script.
>> Aha! Now it's clear. Thanks Markus.
>> Do we know that it's always coming in the first few chars of the script?
> Yes, it's always the first 2-4 bytes.

Thanks for the link, Markus.

I suppose we could add your s/// wrapper to RegistryCooker as a function, 
so to save time to those who want to write a subclass to handle that.

Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker     mod_perl Guide --->

Report problems:
Mail list info:
List etiquette:

View raw message