X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/31ee69b5df7b8e99e4e555dd4aecb6d39bd0f885..645302842b66aa3736a57add25bb30771de71701:/Client/src/principal.cpp?ds=sidebyside diff --git a/Client/src/principal.cpp b/Client/src/principal.cpp index e70f36d..0a48c30 100644 --- a/Client/src/principal.cpp +++ b/Client/src/principal.cpp @@ -53,12 +53,7 @@ Principal::Principal(BaseObjectType *co, const Glib::RefPtr & rev = rev.substr(6, rev.length() - 8); std::string s = "PlaQui Client versión " VERSION " (revisión "; s += rev + ")"; - try { - lbl_plaqui_version->set_text(Glib::locale_to_utf8(s)); - } - catch (...) { - lbl_plaqui_version->set_text("PlaQui Client"); - } + lbl_plaqui_version->set_text(Glib::convert(s, "UTF-8", "ISO-8859-1")); rg->get_widget("anim_frames", anim); anim->set(anim_frames[current_frame]); @@ -384,6 +379,8 @@ void Principal::on_conexion_ok(const std::string &body) } else { Glib::ustring s; try { + // El mensaje deberia convertirse a UTF antes de + // mandarlo para evitar problemas. s = "\n"+Glib::locale_to_utf8(body)+"\n\n"; } catch (...) {