Re: Quercus illegal utf8 encoding
Tero Ripattila <[email protected]> Wed, 5 Jul 2006 15:20:51 +0300
| Newsgroups | gmane.text.xml.resin.user |
|---|---|
| Organization | Extremia |
| Message-ID | <[email protected]> |
Hello, Wednesday, July 5, 2006, 2:12:57 PM, you wrote: > I'm trying to migrate php applications from apache to resin. The first > obstacle is encoding, Quercus parser doesn't seem to accept special chars > anywhere in the php files. This is the output error of a simple php script > execution: > <?php > echo "?"; ?>> Your sample script doesn't seem to contain any special characters, but I think that your script is saved as UTF-8 and it contains a BOM header, which causes this CharConversionException. > Somebody knows how to set server encoding or avoid this behavior? I noticed this too when I converted my custom PHP application from Apache2 to Resin. You need to convert your PHP files to use some other character set instead of UTF-8 - I'm using ISO-8859-1 here. HTH, -- Tero