Jump to content

API - timers list contains invalid characters (according to Visual Stu


uglyned

Recommended Posts

Hi,

 

Having a go at reading in the timer list using the new async processes in Visual Studio 2012.

 

The application throws an exception when reading in the timer list direct into a string, stating the following (I'm using the ?utf8 parameter in the query string).

 

'The character set provided in ContentType is invalid. Cannot read content as string using an invalid character set'

 

However, if I read it into a byte array, then use UTF8 encoding to convert it to string, it works OK.

 

So no big issue - there's an easy workaround, just thought you might like to know.

 

 

Link to comment

It was an '&'. Food & Drink. Programme has finished now. I just turned the feed into a char array and manually omitted the '&' and it was fine. Weird.

Link to comment

I think it's picky. I tried it with several the webbrowsers and they didn't complain about the encoding of & or other special chars...

Link to comment
×
×
  • Create New...