Getting the system default charset
Christian Biesinger <[email protected]> Fri, 24 Jun 2005 21:59:08 +0200
| Newsgroups | gmane.comp.mozilla.internationalization |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Hi, I'd like to read an OS file in Mozilla code. Is there any way to get the system default charset (from C++ code)? I think I want essentially whatever nl_langinfo(CODESET) returns. nsIPlatformCharset looks promising but does not seem to contain anything for file _contents_ (only filenames). -biesi