Closed woutersl closed 6 years ago
Original comment by Laurent Wouters (Bitbucket: 557058:675792b6-d731-4823-9f7d-c6dfcb2df2b5, ).
Verified
Original comment by Laurent Wouters (Bitbucket: 557058:675792b6-d731-4823-9f7d-c6dfcb2df2b5, ).
[fix] Fixed issue #55 Do not emit BOM for Hime outputs
Original report by Laurent Wouters (Bitbucket: 557058:675792b6-d731-4823-9f7d-c6dfcb2df2b5, ).
A BOM can be emitted at the beginning of the text artifacts produced by Hime. This may be a problem for artifacts consumed by tools such as graphviz dot. The BOM is emitted in cases as explained in: System.IO.StreamWriter.
For example when a constructor like this is used:
This should be replaced by the use of
UTF8Encoding
instance without the BOM.