UTF8 insert Byte Order Mark

From n0r1sk software solutions
Revision as of 12:11, 4 July 2011 by Mario (talk | contribs) (The script to add BOM (Byte Order Mark)
Jump to: navigation, search

UTF8 in general does not need a BOM, a Byte Order Mark but sometimes libraries that are reading and writing files need it as mandatory argument. In UTF16 and UTF32 the BOM is mandatory.

More information could be found on Wikipedia.[1][2]

Show the differce

With the following commands you could determine the used encoding.

The script to add BOM (Byte Order Mark

Prerequirement:

apt-get install libicu-dev