2017-07-05 23:10:57 +00:00
|
|
|
/*
|
|
|
|
* This file is subject to the terms and conditions defined in
|
|
|
|
* file 'LICENSE.md', which is part of this source code package.
|
|
|
|
*/
|
|
|
|
|
|
|
|
package textencoding
|
|
|
|
|
2018-07-25 16:14:19 +10:00
|
|
|
// NewWinAnsiTextEncoder returns a SimpleEncoder that implements WinAnsiEncoding.
|
2018-06-27 12:25:59 +10:00
|
|
|
func NewWinAnsiTextEncoder() SimpleEncoder {
|
2018-11-29 06:20:27 +02:00
|
|
|
const baseName = "WinAnsiEncoding"
|
|
|
|
enc := newSimpleTextEncoder(winAnsiEncoding, baseName, nil)
|
2018-07-31 11:44:37 +10:00
|
|
|
return *enc
|
2017-07-05 23:10:57 +00:00
|
|
|
}
|