I am using .net 4.5.2 c# wpf application and mandrill email serving api
Their api results so bad and need to manually fix character errors
So far I did these 2 things but still errors happens that drives me nuts
string srLoginCity = HttpUtility.HtmlEncode(myPerEmail.srLoginCity);
string srRegisterCity = HttpUtility.HtmlEncode(myPerEmail.srRegisterCity);
srLoginCity = RemoveDiacritics(srLoginCity);
srRegisterCity = RemoveDiacritics(srRegisterCity);
Even though both HtmlEncode
and RemoveDiacritics
latest error happened like below
The city name was : Diyarbakır
Their api thrown 500 internal server error with no description
Diyarbakır
is still result as Diyarbakır
after both process
So what else I need to do in order to convert it correctly so mandrill api which takes json data will not fail ?
I believe I either need to convert ı
letter to i
or encode it somehow.
There can be other letters which would fail so I don't want manual ı
to i
solution.