Support for encoding iso-8859-1 in go.text

I use go.text in my project https://godoc.org/code.google.com/p/go.text/encoding

I do not understand why he is absent iso-8859-1?

I know that I can easily transcode it byte -> rune -> utf8 Cancel XML input of ISO-8859-1 in Go

But I am wondering if there is some kind of encoding in go.text, which iso-8859-1, but is named differently. I know that he has the following names.

    ISO_8859-1:1987
    ISO-8859-1
    iso-ir-100
    ISO_8859-1
    latin1
    l1
    IBM819
    CP819
    csISOLatin1
+4
source share
1 answer

Instead iso-8859-1you can use Windows1252.

ISO 8859-1, IANA ISO-8859-1 , 80 9F (hex)

http://en.wikipedia.org/wiki/Windows-1252

ISO-8859-1 . Windows-1252 , , -, .

:

http://www.i18nqa.com/debug/table-iso8859-1-vs-windows-1252.html

+5

All Articles