[wp-hackers] Theme functions.php Encoding Weirdness

Jacob Santos wordpress at santosj.name
Sun Jan 13 03:44:36 GMT 2008


Matt wrote:
> There's these characters before <?php
>
> 
>
> On Jan 12, 2008 7:32 PM, Jeremy Visser <jeremy.visser at gmail.com> wrote:
>
>   
>> On Sat, 2008-01-12 at 19:24 -0800, Matt wrote:
>>     
>>> In Trunk, if the theme's functions.php has the encoding UTF-8, I get the
>>> following error when editting settings:
>>>
>>> *Warning*: Cannot modify header information - headers already sent by
>>> (output started at /path/to/wp-content/themes/themename/functions.php:1)
>>>       
>> in
>>     
>>> */path/to/wp-includes/pluggable.php* on line *600*
>>>
>>> But, when I changed functions.php to ANSI, there was no error.
>>>
>>> The settings are still changed, though.
>>>       
>> Possibly there is a BOM (byte-order mark) sneaking in there somewhere.
>> Try looking at it in a hex editor.
>>
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
>>     
>
>
>
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>   

Yeah, that is the BOM or at least what it appears when there isn't 
support for it. Happens all the time on my site. Damn Expression Web.

-- 

Jacob Santos

http://www.santosj.name - blog
http://funcdoc.wordpress.com - WordPress Documentation Blog/Guide Licensed under GPLv2

Also known as darkdragon and santosj on WP trac.



More information about the wp-hackers mailing list