Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Choice of BOM for UTF-16 encoding

1 view
Skip to first unread message

Aristotle Pagaltzis

unread,
Feb 10, 2014, 2:51:35 AM2/10/14
to perl-u...@perl.org
* Geoffrey Leach <ge...@hughes.net> [2014-02-10 07:35]:
> Is there a way to force (from my module) the choice to be LE? It turns
> out that the library I'm supporting (taglib) works in LE.

Does it need a BOM prepended?

If not, just do the obvious and `encode('UTF-16LE', $str)`.

C.f. `perldoc Encode::Unicode`.

Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>
0 new messages