Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

http://bugs.sun.com/view_bug.do?bug_id=4508058

As a workaround, you can A workaround that *appears* (I haven't done serious testing) to fix the issue is to wrap a file input stream in an org.apache.velocity.io.UnicodeInputStream instance, which is specifically designed to be BOM-aware.  (There is also a BOMInputStream in apache.commons.io, but in a later version of the jar than is included in Openmrs 1.6).