[pmwiki-devel] Error message
Petko Yotov
5ko at 5ko.fr
Fri Jul 10 07:27:58 CDT 2015
If the file doesn't have international characters like accented letters
or other alphabets or special punctuation, UTF-8 without BOM is
byte-for-byte the same as ANSI/cp1251/cp1252/iso8859-X (for characters
0-127). With that file, your text editor has probably a setting to
prefer the UTF-8 encoding unless the text doesn't look like UTF-8.
Petko
On 2015-07-10 13:12, Simon wrote:
> Thanks Petko,
> though I had the encoding OK, but on further examination using
> NotePad++
> the encoding was UTF-8, changed it to ANSII and saved file.
>
> I wonder whether it
> <http://www.pmwiki.org/pmwiki/uploads/Cookbook/extract.php> was loaded
> to
> PmWiki with that encoding, or changed to that encoding on download from
> PmWiki.
> I downloaded it again from PmWiki (save link as with Chrome) and
> NotePad++
> tells me it is encoded with UTF-8.
>
> For comparison I downloaded a file
> <http://www.pmwiki.org/pmwiki/uploads/Cookbook/2015-07-01-nztopo.php> I
> recently uploaded to PmWiki to find NotePad++ shows it as UTF-8 without
> BOM.
>
> again thanks for the prompt reply.
>
> Simon
>
> On 10 July 2015 at 22:35, Petko Yotov <5ko at 5ko.fr> wrote:
>
>> When you save the file, the encoding/charset should be either
>> cp1252/Windows1252 or UTF-8 without Byte Order Mark.
>>
>> Also, double check that you not have any spaces, characters or line
>> breaks
>> before the first <?php of that file.
>>
>> Finally, when you transfer the files, tell your FTP manager to use
>> text
>> mode transfer, or, if that doesn't help, binary mode transfer.
>>
>> Petko
>>
>>
>> On 2015-07-10 11:17, Simon wrote:
>>
>>> I've been testing on Windows, all good. Uploaded to my host (linux)
>>> and I get this error
>>>
>>> PHP Warning: Cannot modify header information - headers already sent
>>> by
>>> (output started at
>>> /home/ttcorgnz/public_html/pmwiki/cookbook/extract.php:1) in
>>> /home/ttcorgnz/public_html/pmwiki/pmwiki.php on line 1240
>>>
>>> I've not had this happen before.
>>> I checked the download and upload of extract.php (e.g. opened it with
>>> notepad++ and saved to check encoding).
>>>
>>> Any ideas would be appreciated, in the meantime I've had to comment
>>> it out
>>>
>>
>>
>> _______________________________________________
>> pmwiki-devel mailing list
>> pmwiki-devel at pmichaud.com
>> http://www.pmichaud.com/mailman/listinfo/pmwiki-devel
>>
More information about the pmwiki-devel
mailing list