If it's not UTF-16, use UTF-8, even if it's ASCII.
To convert Unicode, I use ??? MultiByteToWideChar() ??? and:
??? const wchar_t Magic_UTF_16 = 0xFeFF ;
const uchar Magic_UTF_8[] = { 0xeF, 0xbb, 0xbF };
const int Sz_Magic_UTF_8 = sizeof Magic_UTF_8 ; ???.
99.9 percent of the time, UTF-16 is ??? little byte first ???,
and ??? surrogate pairs ??? are damn near impossible to find.
If it's not UTF-16, use UTF-8, even if it's ASCII.
Posts, emails and MIME attachements tell you the exact encoding,
so you can do a ??? GetCharsetInfo( CharSet_In, & Encoding_Out ) ???,
given: ??? MIMECSETINFO Encoding_Out ; ???.
I use CSS 3 ( FireFox 2.0 ) to override web sites.
For example, " http://Dictionary.Reference.COM/browse/variance "
looks like: " www.Cotse.NET/users/jeffrelf/Dictionary.PNG ".
To do that, I have to download, wrap and edit pages
without breaking the JavaScript or Stlye Sheets.
My Wrap_HTML.EXE wraps these files to 71 columns:
??? www.Cotse.NET/users/jeffrelf/Wrap_HTML.EXE
www.Cotse.NET/users/jeffrelf/Wrap_HTML.CPP ???.
Pass Wrap_HTML.EXE the file you want to wrap;
e.g. run: ??? Wrap_HTML Index.HTM ???.
......
My settings and CSS 3 for FireFox 2.0:
??? www.Cotse.NET/users/jeffrelf/userContent.CSS
www.Cotse.NET/users/jeffrelf/userChrome.CSS
www.Cotse.NET/users/jeffrelf/User.JS ???.
" Desktop --> Properties --> Themes " settings for Windows-XP:
" www.Cotse.NET/users/jeffrelf/Jeff_Relf.Theme ".