|
Posted by amygdala on 06/14/07 01:50
"C." <colin.mckinnon@gmail.com> schreef in bericht
news:1181771230.035994.248850@e9g2000prf.googlegroups.com...
> On 13 Jun, 21:25, "amygdala" <nore...@noreply.com> wrote:
>>
>> The way I test to see if the content is UTF8, is by opening the XML file
>> in
>> notepad and choose 'save as...'. Normally the coding option should be set
>> to
>> UTF8, but now it just shows ANSI.
>>
>
> ROFL.
Yes, very amusing. :-/
> Try inserting a BOM in front of the content.
Ok, I did a little research on BOM. And came up with information that tells
me the BOM isn't particularly necessary for UTF-8. Then I ran a simple test
with utf8_encode:
<?php
echo utf8_encode( 'ο' );
?>
Which output looks like it works just fine:
Γ―
Since I've concluded (see my reply to Andy Hassall) that my files are
encoded in '1252 (ANSI - Latijn I)' and this test file was also '1252
(ANSI - Latijn I)' I guess it works. And I don't necessary have to provide a
BOM and don't have to resort to iconv. Correct?
Or am I missing something vital here?
Thanks.
[Back to original message]
|