djc / rnc2rng

RELAX NG Compact to regular syntax conversion library
MIT License
16 stars 13 forks source link

Try to detect encoding of rnc files #15

Closed brechtm closed 6 years ago

brechtm commented 6 years ago

If a UTF-16 BOM is present, use UTF-16 encoding. Otherwise, assume UTF-8 encoding. See the "Character encoding" section of the RELAX NG Compact Syntax specification.

Fixes #14

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.5%) to 89.358% when pulling 029f0719820aed27f4f3b0ce613294bac59e9fe4 on brechtm:file_encoding into 086abceb986a8b044e1a7b1b0978c981f569744c on djc:master.

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.07%) to 89.744% when pulling 280e54ce7edeaaed3f9b24821fa3b4c2b5ce76db on brechtm:file_encoding into 086abceb986a8b044e1a7b1b0978c981f569744c on djc:master.

djc commented 6 years ago

I've squashed your commits to ca0b3db973985fa79cf8f017a554a7c118938ceb and simplified in subsequent 728bbaf80b8238987c24bb9a50a5e3ec651fae59. Thanks!

brechtm commented 6 years ago

Thank you! And to answer your earlier question: a new release would be great :-)

djc commented 6 years ago

There's now a 2.6.1 release.