#include <libsolipa/solipa.h>
#include <libsolipa/allegato.h>
#include <libsolipa/mail.h>
+#include <libsolipa/ooo.h>
#include <libsolipa/progresswindow.h>
#include <libsolipa/utils.h>
PyRun_SimpleString (g_strdup_printf (
"search.SearchString = u\"%s\"\n"
"found = document.findFirst(search)\n"
- "found.String = string.replace(found.String, u\"%s\", u\"%s\")\n",
+ "found.String = string.replace(found.String, u\"%s\", \"%s\".decode(\"utf-8\"))\n",
_search,
_search,
_replace));
priv->m_main = PyImport_AddModule ("__main__");
priv->dict = PyModule_GetDict (priv->m_main);
+ PyRun_SimpleString ("# coding: utf-8\n");
+
#ifdef G_OS_WIN32
ooo_path = g_strjoinv ("\\\\", g_strsplit (priv->ooo_path, "\\", -1));
solipa_ooo_apri_documento (ooo, argv[1]);
- solipa_ooo_string_replace (ooo, "{prg::replace}", "\"blah blah blah\"");
+ solipa_ooo_string_replace (ooo, "{prg::replace}", "\"blah blah blah ààà ììì òòò ÈÈÈ ÀÀÀ ÙÙÙ\"");
if (argc >= 3)
{