Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

removed unnecessary Buffer.toString() with hardcoded utf8 encoding#768

Open
nlang wants to merge 1 commit intomscdex:master from
nlang:master
Open

removed unnecessary Buffer.toString() with hardcoded utf8 encoding #768
nlang wants to merge 1 commit intomscdex:master from
nlang:master

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

Reviewers

1 more reviewer

@anAgent anAgent anAgent approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /