I have a contact named Frédéric
.
When I search it in contacts list in the site the name gets changed like this "Frédéric"
, Since it searches this name(Frédéric
) in the database were I have the name Frédéric
in it.
So there will not be a name like that in database it says no contacts found.
How do I get the real name other than this name Frédéric
.?
my decode method is
public static string Decode(string text)
{
if (text == null)
{
return "";
}
string result = "";
string[] values = text.Split('@');
bool escaped = false;
try
{
for (int i = 0; i < values.Length; i++)
{
if (!escaped)
{
result += values[i].Replace("_"," ");
}
else
{
//result += System.Text.ASCIIEncoding.ASCII.GetChars(new byte[] { byte.Parse(values[i]) })[0];
}
escaped = !escaped;
}
}
catch { }
return result;
}
here the argument of the method is Frédéric but it actually has to be Frédéric.