{"action":"created","issue":{"url":"https://api.github.com/repos/sendgrid/sendgrid-nodejs/issues/310","repository_url":"https://api.github.com/repos/sendgrid/sendgrid-nodejs","labels_url":"https://api.github.com/repos/sendgrid/sendgrid-nodejs/issues/310/labels{/name}","comments_url":"https://api.github.com/repos/sendgrid/sendgrid-nodejs/issues/310/comments","events_url":"https://api.github.com/repos/sendgrid/sendgrid-nodejs/issues/310/events","html_url":"https://github.com/sendgrid/sendgrid-nodejs/issues/310","id":180981655,"number":310,"title":"Encoding issue in subject line","user":{"login":"omjokine","id":149765,"avatar_url":"https://avatars.githubusercontent.com/u/149765?v=3","gravatar_id":"","url":"https://api.github.com/users/omjokine","html_url":"https://github.com/omjokine","followers_url":"https://api.github.com/users/omjokine/followers","following_url":"https://api.github.com/users/omjokine/following{/other_user}","gists_url":"https://api.github.com/users/omjokine/gists{/gist_id}","starred_url":"https://api.github.com/users/omjokine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omjokine/subscriptions","organizations_url":"https://api.github.com/users/omjokine/orgs","repos_url":"https://api.github.com/users/omjokine/repos","events_url":"https://api.github.com/users/omjokine/events{/privacy}","received_events_url":"https://api.github.com/users/omjokine/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sendgrid/sendgrid-nodejs/labels/hacktoberfest","name":"hacktoberfest","color":"d93f0b"},{"url":"https://api.github.com/repos/sendgrid/sendgrid-nodejs/labels/status:%20help%20wanted","name":"status: help wanted","color":"0b02e1"},{"url":"https://api.github.com/repos/sendgrid/sendgrid-nodejs/labels/type:%20bug","name":"type: bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-10-04T19:23:56Z","updated_at":"2016-10-12T17:57:08Z","closed_at":null,"body":"#### Issue Summary\r\n\r\nIn default Sendgrid is using ASCII encoding in subject lines. This causes issues when using non-ASCII characters in subject line. This can be fixed by using UTF-8 encoding in subject (e.g. http://ncona.com/2011/06/using-utf-8-characters-on-an-e-mail-subject/). I think Sendgrid library should do utf-8 encoding by default so user don't need to worry about it.\r\n\r\n#### Steps to Reproduce\r\n\r\nUse Sendgrid library like this:\r\nconst helper = require('sendgrid').mail;\r\nconst subject = 'ÄäÖö';\r\nconst mail = new helper.Mail(fromEmail, subject, toEmail, content);\r\n\r\nCheck your inbox and you'll see something like this in subject line:\r\n����\r\n\r\n#### Technical details:\r\n\r\n* sendgrid-nodejs Version: 4.3.0\r\n* Node.js Version: 5.10.1"},"comment":{"url":"https://api.github.com/repos/sendgrid/sendgrid-nodejs/issues/comments/253288644","html_url":"https://github.com/sendgrid/sendgrid-nodejs/issues/310#issuecomment-253288644","issue_url":"https://api.github.com/repos/sendgrid/sendgrid-nodejs/issues/310","id":253288644,"user":{"login":"shkabo","id":1276333,"avatar_url":"https://avatars.githubusercontent.com/u/1276333?v=3","gravatar_id":"","url":"https://api.github.com/users/shkabo","html_url":"https://github.com/shkabo","followers_url":"https://api.github.com/users/shkabo/followers","following_url":"https://api.github.com/users/shkabo/following{/other_user}","gists_url":"https://api.github.com/users/shkabo/gists{/gist_id}","starred_url":"https://api.github.com/users/shkabo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shkabo/subscriptions","organizations_url":"https://api.github.com/users/shkabo/orgs","repos_url":"https://api.github.com/users/shkabo/repos","events_url":"https://api.github.com/users/shkabo/events{/privacy}","received_events_url":"https://api.github.com/users/shkabo/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T17:57:08Z","updated_at":"2016-10-12T17:57:08Z","body":"@thinkingserious I've tested it again. If I run it in Git Bash on Win10 (MINGw64 terminal) I get that error, but when I run it from my laptop (Ubuntu 12.04) it works ...\r\n"}}
{"actor":{"display_login":"shkabo"}}