× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



> -----Original Message-----
> From: Scott Klement [mailto:klemscot@xxxxxxxxxxxx]
> 
> 437 is probably the MS-DOS codepage.  The Windows codepage is probably
> 1252.  I don't know how to look that up, though.

Scott,

In windows land you can do;

        char *currentLocaleSettings;
        char messageString[200];  // 200 should be enough

        // set locale to current operating system settings.
        // we need to do this as the compiler adds a
        // setlocale(LC_ALL, "C") into the prelogue code before
        // this (or any) program is executed
        setlocale( LC_ALL, "" );
        
        // now query what the setttings are...
        currentLocaleSettings = setlocale( LC_ALL, NULL );

        // format a message...
        sprintf(messageString, "Windows reports:\r\n\r\n    %s  \r\n\r\nas the 
current code page.",
                                                        currentLocaleSettings);

        // display findings...
        MessageBox( NULL, messageString, "Windows Code Page", MB_OK );

        return 0;

To get the Windows code page.

--phil 


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.