Skip to content

Commit

Permalink
Fix FAKE Chinese text bug
Browse files Browse the repository at this point in the history
See
fsprojects/FAKE#1196,
fsprojects/FAKE#1212,
fsprojects/FAKE#1213 &
fsprojects/FAKE#1194

Not sure of the ramifications of this change, but this fixes the
encoding issues in FAKE for me.

l.Head.Encoding was
`System.IO.StringWriter(new System.Text.StringBuilder()).Encoding`
which evaluates to utf-16
/cc:@forki
  • Loading branch information
nosami committed Oct 7, 2016
1 parent a02dc47 commit a66d98b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/source/Yaaf.FSharp.Scripting/YaafFSharpScripting.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ module internal Helper =
override __.Dispose (r) =
base.Dispose r
if r then doAll (fun t -> t.Dispose())
override __.Encoding = l.Head.Encoding
override __.Encoding = Encoding.UTF8
static member Create l = new CombineTextWriter (l) :> TextWriter
type OutStreamHelper (saveGlobal, liveOutWriter : _ option, liveFsiWriter : _ option) =
let globalFsiOut = new StringBuilder()
Expand Down

0 comments on commit a66d98b

Please sign in to comment.