To use the CP1252 library:
  1. Follow the steps in Add library file to add the following libraries to your project.
    libCP1252.a
    libCodeConversion.a



  2. On the same screen as the previous step, open [Tool settings] → [Compiler] → [Other] and set the following option.
    -fexec-charset=CP1252

    The default setting of the Sample project for the English version is as follows:
    -fexec-charset=CP437



  3. Call the LoadCP1252 function in the project's main() function.
    Sample
    #include <stdio.h>
    #include "lib.h"
    #include <CP1252.h>
    
    void main(void)
    {
        LoadCP1252();
    
        printf(" Hoje será um dia\n");
        printf(" emocionante.\n");
    
        while (1)
        {
            Idle();
        }
    }
    

Last updated: 2022/04/08