#include <iostream>
#include <clocale>
#include <cctype>

int main()
{
    std::setlocale(LC_ALL, "en_US.iso88591"); // only now Á is 0xc1
    unsigned char big = 0xc1;
    unsigned char small = std::tolower(big);

    std::cout << std::hex << "character code was "
              << +big << " became " << +small << '\n';
}
