Beispiel #1
0
/* From UCS4 To WinLocale */
UT_String  	AP_Win32App::s_fromUCS4ToWinLocale(const UT_UCS4Char * szIn)
{		
	UT_UCS4String sUCS4(szIn);
	UT_String sRslt;
	
	char *pText = UT_convert ((char *)sUCS4.ucs4_str(),
							  sUCS4.length()*sizeof(UT_UCS4Char),
							  ucs4Internal(),
							  XAP_App::getApp()->getDefaultEncoding(),
							  NULL, NULL);
	sRslt = pText;
	g_free(pText);
	return sRslt;

}
Beispiel #2
0
/* From  UTF8 To WinLocale */
UT_Win32LocaleString 	AP_Win32App::s_fromUTF8ToWinLocale(const char* szInUTF8)
{
	UT_UTF8String utf8(szInUTF8);	
	UT_UCS4String sUCS4(utf8.ucs4_str());
	return AP_Win32App::s_fromUCS4ToWinLocale(sUCS4.ucs4_str());
}