I need a way to record the default (encoding) codepage for text and store this off in a file. This must work on windows, Mac OS X and Linux/Solaris.
Ideally they would be comparable to each other, but, if the identifier is only comparable to other "codepages" on the same system, that is, Windows to Windows, Mac to Mac, etc, then that will be okay too.
In other words, I just need to know how on each platform to get the current default codepage for text input. Ideally, I would like to store this in a platform agnostic way.
I don't necessarily need code snippets, just pointers to web resources, that basically outline how to do this for each platform...
Anyway, I hope someone can help.