I need to convert a string to UTF-8 in C#. I\'ve already try many ways but none works as I wanted. I converted my string into a byte array and then to try to write it to an
Check the Jon Skeet answer to this other question: UTF-16 to UTF-8 conversion (for scripting in Windows)
It contains the source code that you need.
Hope it helps.