title: How to convert Office 365 �ɂ����鑼�̃��[�U�[�̃��[���{�b�N�X�ւ̃A�N�Z�X�Ɋւ���K�C�h�`���`���[�g���A��
body: <p>I am reading source of the following url but the title is coming as bunch of ?? marks, how do I convert it to actual language that the web page is presenting.</p>
  
  <p><a href="http://support.microsoft.com/common/survey.aspx?scid=sw;ja;3703&amp;showpage=1" rel="nofollow">http://support.microsoft.com/common/survey.aspx?scid=sw;ja;3703&amp;showpage=1</a></p>
  
  <pre><code>private string[] getTitleNewUrl()
  {   
      string url = @"http://support.microsoft.com/common/survey.aspx?scid=sw;ja;3703&amp;showpage=1";
      string[] titleNewUrl = new string[2];
      var navigatedUrl = string.Empty;
  
      string title = string.Empty;
      try
      {
          HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
          request.Credentials = System.Net.CredentialCache.DefaultCredentials;
          HttpWebResponse response = (HttpWebResponse)request.GetResponse();
  
          if (response.StatusCode == HttpStatusCode.OK)
          {
              navigatedUrl = response.ResponseUri.ToString(); **//this returns [http://support.microsoft.com/default.aspx?scid=gp;en-us;fmserror][1]**
  
              StreamReader sr = new StreamReader(response.GetResponseStream());
              var htmlSource = sr.ReadToEnd();
  
              Match m = Regex.Match(htmlSource, @"&lt;title&gt;\s*(.+?)\s*&lt;/title&gt;");
              if (m.Success)
              {
                  title = m.Groups[1].Value;
              }
  
              titleNewUrl[0] = title;
              titleNewUrl[1] = navigatedUrl;
          }
      }
      catch (Exception ex)
      {
          MessageBox.Show("Invalid URL: " + navigatedUrl + " Error: " + ex.Message);
      }
  
      return titleNewUrl;
  }
  </code></pre>
  
  <p>Thanks</p>