This is an interesting question. The best way I can think of to test for this kind of question is to check the default encoding of the .NET 2.0 framework installed on the computer. I have provided a link to the documentation below, but here is a quick outline of what I think might work. Please note that I have not tested this code.
System.Text.Encoding default = System.Text.Encoding.Default;
int codePage = default.CodePage;
if( codePage == 437 )
{
// 437 IBM437 OEM United States
}
else
{
// Something else
}
http://msdn2.microsoft.com/en-us/library/system.text.encoding.aspx
http://msdn2.microsoft.com/en-us/library/system.text.encoding.codepage.aspx
You'll have to play around with exactly which code pages you want to check for and how you want to handle each, but I think this should get you headed in the right direction.
Matt Faus / Microsoft InfoPath MVPQdabra® Software / Streamline data gathering to turn process into knowledge