FG

iconv generating UTF-16 with BOM

Fresh3 days ago
Mar 15, 202619041 views
Confidence Score0%
0%

Problem

Inspired by this question, can I use the command to generate UTF-16 output with a BOM and with specified endianness? The command converts text from one encoding to another. For example: generates a UTF-16 representation of . UTF-16 files often, but not always, start with a Byte Order Mark (BOM), wh…

Error Output

echo hello | iconv -f ascii -t utf-16

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: iconv generating UTF-16 with BOM

Low Risk

No, if you specify the byte ordering, does not insert a BOM. This is from The Unicode Consortium Q: How I should deal with BOMs? A: Here are some guidelines to follow: A particular protocol (e.g. Microsoft conventions for .txt files) may require use…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment