This project has moved. For the latest updates, please go here.

Invalid Character Exception with flickr.people.getInfo

Topics: Developer Forum, User Forum
Aug 4, 2015 at 6:07 AM
Edited Aug 4, 2015 at 6:09 AM
First of all, the FlickrNet Project is great! I really love it.

I 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:
51266254@N00 and 46611802@N00

I always get the following error (catch exception response):

Now, 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.

It should be something like this, although this, of course, does not work:

userquery = Regex.Replace(f.PeopleGetInfo(UserID), "\p{C}+", "");

Here is a description on how to clean characters from a stream, but I don't get how to apply it to f.PeopleGetInfo(UserID).
Aug 4, 2015 at 4:13 PM
I've moved the discussion over here: