{"action":"created","issue":{"url":"https://api.github.com/repos/arduino/Arduino/issues/2092","labels_url":"https://api.github.com/repos/arduino/Arduino/issues/2092/labels{/name}","comments_url":"https://api.github.com/repos/arduino/Arduino/issues/2092/comments","events_url":"https://api.github.com/repos/arduino/Arduino/issues/2092/events","html_url":"https://github.com/arduino/Arduino/issues/2092","id":34207922,"number":2092,"title":"IDE doesn't properly handle byte order mark","user":{"login":"McNeight","id":641116,"avatar_url":"https://avatars.githubusercontent.com/u/641116?v=3","gravatar_id":"","url":"https://api.github.com/users/McNeight","html_url":"https://github.com/McNeight","followers_url":"https://api.github.com/users/McNeight/followers","following_url":"https://api.github.com/users/McNeight/following{/other_user}","gists_url":"https://api.github.com/users/McNeight/gists{/gist_id}","starred_url":"https://api.github.com/users/McNeight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/McNeight/subscriptions","organizations_url":"https://api.github.com/users/McNeight/orgs","repos_url":"https://api.github.com/users/McNeight/repos","events_url":"https://api.github.com/users/McNeight/events{/privacy}","received_events_url":"https://api.github.com/users/McNeight/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-05-23T20:29:29Z","updated_at":"2015-04-22T07:31:24Z","closed_at":null,"body":"http://en.wikipedia.org/wiki/Byte_order_mark\r\nThe UTF-8 representation of the BOM is the byte sequence 0xEF, 0xBB, 0xBF. A text editor or web browser interpreting the text as ISO-8859-1 or CP1252 will display the characters ï»¿ for this.\r\n\r\nAdding the byte order mark to a UTF-8 encoded library.properties file causes that library to be ignored by the IDE. Removing the three bytes at the beginning of the file \"restores\" the library.\r\n\r\nAdding the byte order mark to a UTF-8 encoded header file causes the following compilation error:\r\n```\r\nIn file included from ReceiveJ1939Messages.ino:28:\r\nC:\\Users\\mcneightne\\Documents\\Arduino\\libraries\\CAN_Library\\src/CAN.h:1: error: stray '\\357' in program\r\nC:\\Users\\mcneightne\\Documents\\Arduino\\libraries\\CAN_Library\\src/CAN.h:1: error: stray '\\273' in program\r\nC:\\Users\\mcneightne\\Documents\\Arduino\\libraries\\CAN_Library\\src/CAN.h:1: error: stray '\\277' in program\r\n```\r\n(with \\357, \\273, \\277 being the octal representations of 0xEF, 0xBB, 0xBF)\r\n\r\nI'm not sure if the IDE can do anything about passing the characters on to the compiler, but it should at least be able to handle the characters in the library.properties file.\r\n\r\n-Neil\r\n"},"comment":{"url":"https://api.github.com/repos/arduino/Arduino/issues/comments/95060433","html_url":"https://github.com/arduino/Arduino/issues/2092#issuecomment-95060433","issue_url":"https://api.github.com/repos/arduino/Arduino/issues/2092","id":95060433,"user":{"login":"ffissore","id":510465,"avatar_url":"https://avatars.githubusercontent.com/u/510465?v=3","gravatar_id":"","url":"https://api.github.com/users/ffissore","html_url":"https://github.com/ffissore","followers_url":"https://api.github.com/users/ffissore/followers","following_url":"https://api.github.com/users/ffissore/following{/other_user}","gists_url":"https://api.github.com/users/ffissore/gists{/gist_id}","starred_url":"https://api.github.com/users/ffissore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ffissore/subscriptions","organizations_url":"https://api.github.com/users/ffissore/orgs","repos_url":"https://api.github.com/users/ffissore/repos","events_url":"https://api.github.com/users/ffissore/events{/privacy}","received_events_url":"https://api.github.com/users/ffissore/received_events","type":"User","site_admin":false},"created_at":"2015-04-22T07:31:24Z","updated_at":"2015-04-22T07:31:24Z","body":"@McNeight is this the output of gcc or the IDE? Can you paste the whole output?"}}