MCPcopy Create free account
hub / github.com/golang/text / Example_decodeWindows1252

Function Example_decodeWindows1252

encoding/example_test.go:19–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17)
18
19func Example_decodeWindows1252() {
20 sr := strings.NewReader("Gar\xe7on !")
21 tr := charmap.Windows1252.NewDecoder().Reader(sr)
22 io.Copy(os.Stdout, tr)
23 // Output: Garçon !
24}
25
26func ExampleUTF8Validator() {
27 for i := 0; i < 2; i++ {

Callers

nothing calls this directly

Calls 2

ReaderMethod · 0.65
NewDecoderMethod · 0.65

Tested by

no test coverage detected