efinnegan closed pull request #139: Updating to set encoding of CLI output to
UTF-8
URL: https://github.com/apache/incubator-daffodil/pull/139
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/daffodil-cli/src/main/scala/org/apache/daffodil/Main.scala
b/daffodil-cli/src/main/scala/org/apache/daffodil/Main.scala
index 26b6e66ae..c2bdaae00 100644
--- a/daffodil-cli/src/main/scala/org/apache/daffodil/Main.scala
+++ b/daffodil-cli/src/main/scala/org/apache/daffodil/Main.scala
@@ -845,7 +845,7 @@ object Main extends Logging {
case Some("-") | None => System.out
case Some(file) => new FileOutputStream(file)
}
- val writer = new BufferedWriter(new OutputStreamWriter(output))
+ val writer = new BufferedWriter(new OutputStreamWriter(output,
"UTF-8"))
val outputter =
getInfosetOutputter(parseOpts.infosetType.toOption.get, writer)
var lastParseBitPosition = 0L
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services