29 марта 2012 г. 22:18 пользователь Lew <[email protected]> написал:

> Remote Red wrote:
> > Dirk Vranckaert wrote:
>
>> > I've added "out.write('\ufeff');" to write the Byte Order Mark
>>
>> That is not the bom for utf-8. You wrote the bom for UTF-16.
>>
>> http://en.wikipedia.org/wiki/**Byte_order_mark<http://en.wikipedia.org/wiki/Byte_order_mark>
>>
>> The bom for utf-8 is 0xEF, 0xBB, 0xBF.
>
>
> And that same article reminds us,
> "The Unicode standard recommends against the BOM for 
> UTF-8.[26]<http://en.wikipedia.org/wiki/Utf-8#cite_note-25>
>  "
>
> It also says that the need for it is something Notepad decided despite
> that it violates the recommendation.
>

IIRC, Notepad++ has a menu to switch encoding on an already loaded file.
Perhaps it was as simple as clicking there.

-- K


>
>
>> You are not done before it works with the right bom.
>>
>
> Which ought to be no BOM at all.
>
> --
> Lew
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to