OW_to_UTF8.cpp

Go to the documentation of this file.
00001 
00002 
00007 #include "OW_UTF8Utils.hpp"
00008 #include "OW_String.hpp"
00009 #include <iostream>
00010 
00011 using namespace OpenWBEM;
00012 using namespace std;
00013 
00014 int main()
00015 {
00016    try
00017    {
00018       String in = String::getLine(cin);
00019       String utf8 = UTF8Utils::UCS4toUTF8(in.toUInt32(16));
00020       for (int i = 0; i < utf8.length(); ++i)
00021       {
00022          std::cout << "0x" << hex << UInt32(UInt8(utf8[i])) << ' ';
00023       }
00024    }
00025    catch (Exception& e)
00026    {
00027       cerr << e << endl;
00028       return 1;
00029    }
00030    return 0;
00031 }
00032 

Generated on Thu Feb 9 08:48:17 2006 for openwbem by  doxygen 1.4.6