2
Vote

Incorrect encoding used in SilverLight code

description

When I use the SL version I get an error that states "'P' is not recognized."
 
I tracked this down to line 183 in StreamTokenizer.cs
It is set to use Unicode as the encoding, if I change it to UTF8 it works as expected.
So this either needs to be fixed or made an option to set encoding.
 

if SILVERLIGHT

        Encoding AE = System.Text.Encoding.UTF8; //Unicode

else

        ASCIIEncoding AE = new ASCIIEncoding();

endif

 
I also noticed that on line 115 of WKTStreamTokenizer.cs, there is another conditional build constant that is not all caps, but you have it defined in all caps in the project settings. Conditional build constants are case sensitive, so this logic needs to be looked over to see what it really is trying to do and be corrected.
 

if(!SilverLight)

 
John

comments

gotzboost wrote Jul 19, 2011 at 4:43 PM

I just noticed that this was already discovered in Item# 14482 back in Oct 2009.
Is there no one that is working on this project anymore??

wrote May 17, 2012 at 9:27 PM

wrote Feb 22, 2013 at 12:06 AM