Although the winlink message format specification says that the headers should be ASCII-only characters, RMS Express encodes the subject header as ISO-8859-1.
If we use https://golang.org/pkg/mime/#WordDecoder and #WordEncoder for the headers, we should be able to properly decode ISO-8859-1 headers as well as conforming with RFC 2047 on encode.
Currently, fbb encodes/decodes the headers as UTF-8... which is clearly wrong.
Although the winlink message format specification says that the headers should be ASCII-only characters, RMS Express encodes the subject header as ISO-8859-1.
If we use https://golang.org/pkg/mime/#WordDecoder and #WordEncoder for the headers, we should be able to properly decode ISO-8859-1 headers as well as conforming with RFC 2047 on encode.
Currently, fbb encodes/decodes the headers as UTF-8... which is clearly wrong.