You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you use the example for the NewWriter provided in the docs and the string
contains a '%', the % is used as a format string, because the signature of
Fprintf is:
Fprintf(w io.Writer, format string, a ...interface{}) (n int, err error)
See:
https://code.google.com/p/go-charset/source/browse/charset/example_test.go#32
What is the expected output? What do you see instead?
If I want to convert e.g. the string '100% free', I get: 100%!f(MISSING)ree.
If I use fmt.Fprint(w, s) instead of fmt.Fprintf(w, s), the result is correct.
I think, the docs / the example should be updated.
Original issue reported on code.google.com by michael....@googlemail.com on 11 Nov 2014 at 2:42
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
michael....@googlemail.com
on 11 Nov 2014 at 2:42The text was updated successfully, but these errors were encountered: