{"action":"created","issue":{"url":"https://api.github.com/repos/Sloeber/arduino-eclipse-plugin/issues/750","repository_url":"https://api.github.com/repos/Sloeber/arduino-eclipse-plugin","labels_url":"https://api.github.com/repos/Sloeber/arduino-eclipse-plugin/issues/750/labels{/name}","comments_url":"https://api.github.com/repos/Sloeber/arduino-eclipse-plugin/issues/750/comments","events_url":"https://api.github.com/repos/Sloeber/arduino-eclipse-plugin/issues/750/events","html_url":"https://github.com/Sloeber/arduino-eclipse-plugin/issues/750","id":230673745,"number":750,"title":"Problem with generated utf-8 .ino file","user":{"login":"nicoverduin","id":1312932,"avatar_url":"https://avatars0.githubusercontent.com/u/1312932?v=3","gravatar_id":"","url":"https://api.github.com/users/nicoverduin","html_url":"https://github.com/nicoverduin","followers_url":"https://api.github.com/users/nicoverduin/followers","following_url":"https://api.github.com/users/nicoverduin/following{/other_user}","gists_url":"https://api.github.com/users/nicoverduin/gists{/gist_id}","starred_url":"https://api.github.com/users/nicoverduin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicoverduin/subscriptions","organizations_url":"https://api.github.com/users/nicoverduin/orgs","repos_url":"https://api.github.com/users/nicoverduin/repos","events_url":"https://api.github.com/users/nicoverduin/events{/privacy}","received_events_url":"https://api.github.com/users/nicoverduin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-05-23T11:23:47Z","updated_at":"2017-05-24T05:22:39Z","closed_at":"2017-05-23T19:59:01Z","body":"Not shure this has been reported before but I noticed the following issue:\r\n**Situation**\r\nI use Sloeber versie 4.0. All my code is generated using Software Ideas Modeler 10.68. This means the code for  a .ino file and c++ classes as well. ****\r\n**Problem**\r\nIf I generate the code in UTF-8 format including a sketch file of type .cpp there is no problem. All are completely compiled by both Sloeber and the Arduino IDE.\r\nIf I generate the sketch as .ino file UTF-8 format I get an error from the compiler stating that my includes are missing the last double-quotes. If I rename this sketch file back to .cpp all compiles fine.\r\nIf I generate the sketch the sketch in ascii format as .ino all compiles well. \r\n\r\nBased on the above the problem seems to arise from where Sloeber copies the .ino into a .ino.cpp file?\r\nI did check the generated files and all have the 3 byte UTF-8 signature at the beginning. If I blank out these 3 bytes (using a hex editor) as spaces the problem is gone. \r\n\r\nRegards\r\nNico\r\n"},"comment":{"url":"https://api.github.com/repos/Sloeber/arduino-eclipse-plugin/issues/comments/303620711","html_url":"https://github.com/Sloeber/arduino-eclipse-plugin/issues/750#issuecomment-303620711","issue_url":"https://api.github.com/repos/Sloeber/arduino-eclipse-plugin/issues/750","id":303620711,"user":{"login":"nicoverduin","id":1312932,"avatar_url":"https://avatars0.githubusercontent.com/u/1312932?v=3","gravatar_id":"","url":"https://api.github.com/users/nicoverduin","html_url":"https://github.com/nicoverduin","followers_url":"https://api.github.com/users/nicoverduin/followers","following_url":"https://api.github.com/users/nicoverduin/following{/other_user}","gists_url":"https://api.github.com/users/nicoverduin/gists{/gist_id}","starred_url":"https://api.github.com/users/nicoverduin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicoverduin/subscriptions","organizations_url":"https://api.github.com/users/nicoverduin/orgs","repos_url":"https://api.github.com/users/nicoverduin/repos","events_url":"https://api.github.com/users/nicoverduin/events{/privacy}","received_events_url":"https://api.github.com/users/nicoverduin/received_events","type":"User","site_admin":false},"created_at":"2017-05-24T05:22:39Z","updated_at":"2017-05-24T05:22:39Z","body":"Unfortunately makes no difference. \n\n \n\nVan: jantje [mailto:notifications@github.com] \nVerzonden: dinsdag 23 mei 2017 22:36\nAan: Sloeber/arduino-eclipse-plugin <arduino-eclipse-plugin@noreply.github.com>\nCC: Nico Verduin <nico.verduin@ziggo.nl>; State change <state_change@noreply.github.com>\nOnderwerp: Re: [Sloeber/arduino-eclipse-plugin] Problem with generated utf-8 .ino file (#750)\n\n \n\nok.\nThinking about it I think the problem is that a external tool is saving a file in a format different than eclipse is told to save in.\nSo It might work with utf-8 if you set the text file encoding under windows->preferences->general->workspace to utf-8.\n\n—\nYou are receiving this because you modified the open/close state.\nReply to this email directly, view it on GitHub <https://github.com/Sloeber/arduino-eclipse-plugin/issues/750#issuecomment-303524188> , or mute the thread <https://github.com/notifications/unsubscribe-auth/ABQIpKoMxMJkiRZxK3YRHlv4z2LtyYTuks5r80M1gaJpZM4Nji4C> .  <https://github.com/notifications/beacon/ABQIpBcAwljENrBSV0COSEYmZHwL4Hqxks5r80M1gaJpZM4Nji4C.gif> \n\n"}}
{"actor":{"display_login":"nicoverduin"}}