title: How to convert unicode to utf-8 encoding in c#
body: <p>I want to convert unicode string to UTF8 string. I want to use this UTF8 string in SMS API to send unicode SMS. 
  I want conversion like this tool 
  <a href="https://cafewebmaster.com/online_tools/utf8_encode" rel="nofollow noreferrer">https://cafewebmaster.com/online_tools/utf8_encode</a></p>
  
  <p>eg. I have unicode string "हैलो फ़्रेंड्स" and it should be converted into "à¤¹à¥à¤²à¥ à¥à¥à¤°à¥à¤à¤¡à¥à¤¸"</p>
  
  <p>I have tried this but not getting expected output</p>
  
  <pre><code>    private string UnicodeToUTF8(string strFrom)
          {
             byte[] bytes = Encoding.Default.GetBytes(strFrom);
  
             return Encoding.UTF8.GetString(bytes);
  
          }
  </code></pre>
  
  <p>and calling function like this</p>
  
  <pre><code>string myUTF8String = UnicodeToUTF8("हैलो फ़्रेंड्स");
  </code></pre>