I have client ios app. In my server side I read the device OS version and based on the version type I perform actions. I get the OS version as string object and then converting it to double for comparison like greater than 6.0 or not like this. When device language is set to English all works fine. But when some languages like Swedish, chineese are set in device, I have trouble in parsing the incoming input.
The value I receive from device is like "7.0"
string sOSVersion = getOSVersionFromDevice();//"7.0"`
double dOSVersion = double.Parse(sOSVersion);// in this line invalid input exception occurs.