I’m developing the Windows Phone 7 prog.
And there’s problem with symbols from the subject name. I want to use this C# code:
str="Santiago Bernabéu";
int i=str.IndexOf(é);
if(i!=-1)
str.Replace('é','e');
but in debug i=-1.
Please help me to solve this problem 🙂
P.S. I’m Russian and my English isn’t good. Please, answer me in simple English 🙂 thank you 🙂
P.P.S. thank you! but there’s another problem: my prog downloads information, and symbols from subject’s name in debug mode – ‘�’. Maybe it’s coding trouble? Site with information which I need using UTF-8.
P.P.P.S.
There’s downloading the sourcecode:
public string Adress
{
get
{
return _adr;
}
set
{
_adr = value.Substring(0, value.Length - 1);
client.Encoding = System.Text.UTF8Encoding.UTF8;
client.DownloadStringCompleted += new DownloadStringCompletedEventHandler(client_DownloadStringCompleted);
client.DownloadStringAsync(new Uri(_adr, UriKind.Absolute));
}
}
Handler:
void client_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
{
if (e.Error != null)
return;
_sourcecode = e.Result;
}
Please, help 🙂 it’s last problem of functional part of project
The solve of this problem – using MSPToolkit