{"action":"closed","issue":{"url":"https://api.github.com/repos/notepad-plus-plus/notepad-plus-plus/issues/1083","repository_url":"https://api.github.com/repos/notepad-plus-plus/notepad-plus-plus","labels_url":"https://api.github.com/repos/notepad-plus-plus/notepad-plus-plus/issues/1083/labels{/name}","comments_url":"https://api.github.com/repos/notepad-plus-plus/notepad-plus-plus/issues/1083/comments","events_url":"https://api.github.com/repos/notepad-plus-plus/notepad-plus-plus/issues/1083/events","html_url":"https://github.com/notepad-plus-plus/notepad-plus-plus/issues/1083","id":114659537,"number":1083,"title":"Missing/added characters in a text file after text insertion","user":{"login":"tsavage23","id":15076115,"avatar_url":"https://avatars.githubusercontent.com/u/15076115?v=3","gravatar_id":"","url":"https://api.github.com/users/tsavage23","html_url":"https://github.com/tsavage23","followers_url":"https://api.github.com/users/tsavage23/followers","following_url":"https://api.github.com/users/tsavage23/following{/other_user}","gists_url":"https://api.github.com/users/tsavage23/gists{/gist_id}","starred_url":"https://api.github.com/users/tsavage23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsavage23/subscriptions","organizations_url":"https://api.github.com/users/tsavage23/orgs","repos_url":"https://api.github.com/users/tsavage23/repos","events_url":"https://api.github.com/users/tsavage23/events{/privacy}","received_events_url":"https://api.github.com/users/tsavage23/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-11-02T18:48:03Z","updated_at":"2016-07-19T01:51:19Z","closed_at":"2016-07-19T01:51:19Z","body":"Missing/added characters in a text file after text insertion\r\n\r\nI was working with two text files. I had one loaded in Notepad++ brought up the other in Notepad. I selected part of the second file to paste into the file in Notepad++. I went back to Notepad++ and pasted the text into the top/front of the Notepad++ file, position 0,0, replacing a number of lines of code. At html Validation with W3C Markup Validation Service I had two errors I couldn't resolve. The first Error appeared at position 0,0. The second Error appeared at the junction of the original text and the inserted text. The cause was not apparent since the text appeared to be good. I inspected the file in a hex editor at both positions and found non-printable characters missing at position 0,0 and extra characters at the junction.\r\n\r\nUsing the W3 Markup Validation Service I retyped the first character at the front of the file and at the junction of the files without effect. I then tried the first two characters at the front of the file and that problem was resolved, and then retyped the two characters at the junction and the second problem was resolved.\r\n\r\nIt would seem that when inserting text data into a file, at the front of the text, the text is inserted at position 0,0, in front of the three character file code, which then appears within the text file at the front of the remaining original text, resulting in two errors, missing file code and characters in a position not allowed.\r\n\r\nThe characters are non-printing characters and are thus not visible within Notepad++.  It took significant effort to find the cause when dealing with text files since you can't see the missing/extra non-printing characters.\r\n\r\nI hope you can fix it, I find myself using Notepad++ all the time now to edit code (html in this case) and I hope no one else has this problem.\r\n\r\nHere is the data I used to resolve the problem:\r\n\r\n\r\nError 1: Line 1, Column 1: character \"‪\" not allowed in prolog\r\n\t   <?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\r\n\r\n3C 3F 78 6D 6C 20 76 65 72 73 69 6F 6E 3D 22 31 \t<?xml version=\"1\r\n2E 30 22 20 65 6E 63 6F 64 69 6E 67 3D 22 75 74 \t.0\" encoding=\"ut\r\n66 2D 38 22 20 73 74 61 6E 64 61 6C 6F 6E 65 3D \tf-8\" standalone=\r\n22 6E 6F 22 3F 3E 0D 3C 21 44 4F 43 54 59 50 45 \"no\"?>.<!DOCTYPE\r\n\r\nFix: Retyped characters 3C 3F (<?) Resutt:\r\nEF BB BF 3C 3F 78 6D 6C 20 76 65 72 73 69 6F 6E \tï»¿<?xml version\r\n3D 22 31 2E 30 22 20 65 6E 63 6F 64 69 6E 67 3D \t=\"1.0\" encoding=\r\n22 75 74 66 2D 38 22 20 73 74 61 6E 64 61 6C 6F \t\"utf-8\" standalo\r\n6E 65 3D 22 6E 6F 22 3F 3E 0D 3C 21 44 4F 43 54 \tne=\"no\"?>.<!DOCT\r\n\r\nError 2: Line 83, Column 1: character data is not allowed here\r\n\r\n3E 0D 09 09 09 09 3C 2F 74 64 3E 0D 09 09 09 3C \t>.....</td>....<\r\n2F 74 72 3E 0D 09 09 3C 2F 74 61 62 6C 65 3E 0D\t/tr>...</table>.\r\nE2 80 AB 0D 20 09 09 3C 70 3E 20 3C 61 20 69 64 \tâ€«. ..<p> <a id\r\n3D 22 6E 75 6D 5F 63 68 61 70 5F 31 22 20 63 6C \t=\"num_chap_1\" cl\r\n61 73 73 3D 22 63 6E 22 3E 31 3C 2F 61 3E 0D 09\t\tass=\"cn\">1</a>..\r\n\r\nFix: Retyped characters 0D 0D (leaving 0D 0A 0D 0A) I didn't want to fix it with the Hex Editor.\r\n25 22 20 3E 0D 0A 09 09 09 09 3C 2F 74 64 3E 0D \t%\" >......</td>.\r\n0A 09 09 09 3C 2F 74 72 3E 0D 0A 09 09 3C 2F 74 \t....</tr>....</t\r\n61 62 6C 65 3E 0D 0A 0D 0A 09 09 3C 68 31 3E D7 \table>......<h1>×\r\nA1 D6 B5 D7 A4 D6 B6 D7 A8 20 D7 91 D6 BC D6 B0 \t¡Öµ×¤Ö¶×¨ ×‘Ö¼Ö°\r\nD7 9E D6 B4 D7 93 D6 B0 D7 91 D6 BC D6 B7 D7 A8 \t×žÖ´×“Ö°×‘Ö¼Ö•×¨\r\n\r\nAnd got this Message:\r\n\r\n    This document was successfully checked as XHTML 1.1!    \r\n\r\nIf there is anything I can do to help you resolve this problem please let me know.\r\n\r\nTom Savage \r\n\r\nYou're missing all the formatting and text illumination ... Oh, Well.\r\n"}}
{"actor":{"display_login":"dail8859"}}