Skip to content

Conversation

nlang
Copy link

@nlang nlang commented May 6, 2019

If a message consists of parts with charsets other than UTF-8 (e.g. ISO-8859), converting the buffer to a string with fixed encoding breaks special characters like umlauts.
As net.Socket.write() excepts a Buffer as the first parameter, converting it to string is unnecessary anyways, so removing the Buffer.toString() easily fixes that problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants