#include <boost/locale.hpp>
#include <locale>
#include <iostream>
{
char iso[] = "La Pe\361a";
std::string utf8 = boost::locale::conv::to_utf<char>(iso, "Latin1");
std::cout << "The UTF8 string is: " << utf8 << std::endl;
std::cout << "The Latin1 string is: " << iso << std::endl;
return 0;
}