I am working on the C ++ string library which contains the main 4 sections which are ASCII, UTF8, UTF16, UTF 32 strings, each class is a print job that performs an input string format and prints out stdout or stderr. My problem is that I do not know what is the default character encoding for those streams.
For now, my classes work in the window, later I will add support for Mac and Linux, so that you know something from them, I appreciate it from the streaming encoding.
So my question is: what is the default encoding for stdout and stderr and can I change that encoding later and if what happens to the data stored there?
Thank you.
Use of standout and sticker "C" locale. "C" is local netral, and most systems have been translated into the current user's locale. You set the setlocale
function:
// set up all the categories and use a specific locale using "English_USA.1252" SetLocal (LC_ALL, "English") You can force the program to do it. ); // Set the LC_MONETARY category only and return "French_French.1252" SettleCell (LC_MONETARY, "French"); Setalkocale (LC_OL, Faucet);
Supported local string systems and compilers are specific. Only "C" and "need to be supported".
Comments
Post a Comment