Re: [mp2] "Unrecognized character" error when running scripts in utf-8

[prev] [thread] [next] [Date index for 2004/11/07]

From: Markus Wichitill
Subject: Re: [mp2] "Unrecognized character" error when running scripts in utf-8
Date: 15:37 on 07 Nov 2004
Игорь Кудашев wrote:
> I use the Windows' Notepad and save the file as utf-8. Everything works fine while I run the script from the command line or through CGI without mod_perl.
> PROBLEM: When I try to run the script using mod_perl, I get the following ERROR:
> 
> [error] 3320: ModPerl::PerlRun: Unrecognized character \xEF at .../CGI-FOO/TEST.PL line 1.

Looks like the various ModPerl::RegistryCooker-based modules don't like a 
UTF-8 Byte Order Marker (BOM, "EF BB BF") at the start of the script 
(verified with 1.99_17). So until that can be fixed in a future version, 
you'll have to use an editor that can save files without a BOM, or remove 
those three bytes manually.

        -- 
        Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

(message missing)

[mp2] =?koi8-r?Q?=22?=Unrecognized character=?koi8-r?Q?=22=20?=error when running scripts in utf-8
=?koi8-r?Q?=E9=C7=CF=D2=D8=20=EB=D5=C4=C1=DB=C5=D7=20?= 13:23 on 07 Nov 2004

Re: [mp2] "Unrecognized character" error when running scripts in utf-8
Markus Wichitill 15:37 on 07 Nov 2004

Re[2]: [mp2] =?koi8-r?Q?=22?=Unrecognized character=?koi8-r?Q?=22=20?=error when running scripts inutf-8
=?koi8-r?Q?=E9=C7=CF=D2=D8=20=EB=D5=C4=C1=DB=C5=D7=20?= 12:09 on 08 Nov 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52