Also, while JSON strings are required to not have a leading BOM, consumers *should* be able to handle it, according to the spec. However, of Perl's JSON libraries, only Cpanel::JSON::XS handles the case without exception.

The way forward always starts with a minimal test.

In reply to Re^3: perltidy and UTF-8 BOM by 1nickt
in thread perltidy and UTF-8 BOM by morelenmir

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":