setlocale(LC_ALL("Portuguese")); code example Example: setlocale(LC_ALL("Portuguese")); setlocale(LC_ALL,("Portuguese"));