uglyned Posted March 10, 2013 Share Posted March 10, 2013 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
Lars_MQ Posted March 10, 2013 Share Posted March 10, 2013 Could please you provide a sample xml, which includes the problematic entries? Link to comment
uglyned Posted March 10, 2013 Author Share Posted March 10, 2013 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
uglyned Posted March 10, 2013 Author Share Posted March 10, 2013 It may have been .Net Framework being a bit picky - I haven't found VS2012 to be all that stable at the moment. Link to comment
Lars_MQ Posted March 10, 2013 Share Posted March 10, 2013 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
uglyned Posted March 11, 2013 Author Share Posted March 11, 2013 Sounds like it to me. Easy to substitute chars it doesn't like so not an issue. Sounds like it's not a 'real' issue. Link to comment
Recommended Posts