Hello,
I'm using Youtube APIs to search videos from ASP.Net page and dsiplay the result in a gridview .I'm using codebehind
here is my code:
protected void Page_Load(object sender, EventArgs e)
{
if (Request.Form["v"] != null)
{
Session["search"] = Request.Form["v"];
}
try
{
string developerKey = ConfigurationManager.AppSettings["developerKey"];
string uri = "http://www.youtube.com/api2_rest?";
uri += "method=youtube.videos.list_by_tag";
uri += "&dev_id=" + developerKey;
uri += "&tag=" + Session["search"];
uri += "&page=1&per_page=100";
DataSet ds = new DataSet();
ds.ReadXml(uri);
DataTable dt = ds.Tables[2];
this.GridView1.DataSource = dt;
GridView1.DataBind();
}
catch
{
Response.Write("<center><b><font color='red'>Error in Retrieving Data</font></b></center>");
}
}
When I use an English word it works fine, but when I try to search using an Arabic word, the word looks like this "??????"
how can I resolve this problem?
Thank you
Get the maximum security with Kaspersky Internet Security 2010
http://notechsoft.com/security.asp?p=3