{"action":"opened","issue":{"url":"https://api.github.com/repos/samjudson/flickr-net/issues/6","labels_url":"https://api.github.com/repos/samjudson/flickr-net/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/samjudson/flickr-net/issues/6/comments","events_url":"https://api.github.com/repos/samjudson/flickr-net/issues/6/events","html_url":"https://github.com/samjudson/flickr-net/issues/6","id":99004873,"number":6,"title":"Invalid Character Exception with flickr.people.getInfo","user":{"login":"samjudson","id":1651599,"avatar_url":"https://avatars.githubusercontent.com/u/1651599?v=3","gravatar_id":"","url":"https://api.github.com/users/samjudson","html_url":"https://github.com/samjudson","followers_url":"https://api.github.com/users/samjudson/followers","following_url":"https://api.github.com/users/samjudson/following{/other_user}","gists_url":"https://api.github.com/users/samjudson/gists{/gist_id}","starred_url":"https://api.github.com/users/samjudson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samjudson/subscriptions","organizations_url":"https://api.github.com/users/samjudson/orgs","repos_url":"https://api.github.com/users/samjudson/repos","events_url":"https://api.github.com/users/samjudson/events{/privacy}","received_events_url":"https://api.github.com/users/samjudson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-04T16:12:43Z","updated_at":"2015-08-04T16:12:43Z","closed_at":null,"body":"First of all, the FlickrNet Project is great! I really love it.\r\n\r\nI have a small problem with retrieving Userinfo using flickr.people.getInfo. For 99% of Userinfo's retrieved, it works perfectly, except for these two UserID's:\r\n51266254@N00 and 46611802@N00\r\n\r\nI always get the following error (catch exception response):\r\n\r\n![Image](http://blog.alexanderdunkel.com/tools/2015-08-01_InvalidCharacter.png)\r\n\r\nNow, as far as I know, the Flickr API should only return UTF-8 compatible characters. Maybe things got screwed up with these two datasets. However, I am having problems fixing this issue, as I don't know how to modify the retrieved answer stream.\r\n\r\nIt should be something like this, although this, of course, does not work:\r\n\r\nuserquery = Regex.Replace(f.PeopleGetInfo(UserID), \"\\p{C}+\", \"\");\r\n[LINK](http://stackoverflow.com/questions/4500870/how-to-remove-control-chars-from-utf8-string)\r\n\r\n[Here](https://seattlesoftware.wordpress.com/2008/09/11/hexadecimal-value-0-is-an-invalid-character/) is a description on how to clean characters from a stream, but I don't get how to apply it to f.PeopleGetInfo(UserID).\r\n"}}