Is it possible "force" UTF-8 in a C program?
<p>Usually when I want my program to use UTF-8 encoding, I write <code>setlocale (LC_ALL, "");</code>. But today I found that it's just setting locate to environment's default locale, and I can't know whether the environment is using UTF-8 by default.</p>

<p>I wonder is there any way to <strong>force</strong> the character encoding to be UTF-8? Also, is there any way to check whether my program is using UTF-8?</p>