Vampire_BY 3 Posted August 24, 2015 (edited) Не получается вывести текст на русском. Есть у кого какие идеи? Вот так у меня выводит русский текст import BigWorld from gui import SystemMessages from Account import Account link = Account.onBecomePlayer def _First(self): link(self) msg = '<font color="#cc9933"><b>АБВГД</b></font>' type = SystemMessages.SM_TYPE.Information SystemMessages.pushMessage(msg, type) Account.onBecomePlayer = link Account.onBecomePlayer = _First Edited August 24, 2015 by DannyGreene Quote Share this post Link to post Short link Share on other sites
Yupi 505 #288561 Posted August 24, 2015 Кодировочка? Quote Share this post Link to post Short link Share on other sites
Vampire_BY 3 #288562 Posted August 24, 2015 Кодировочка? Пробовал меня и что то результата не увидел Quote Share this post Link to post Short link Share on other sites
SkepticalFox 1,445 #288568 Posted August 24, 2015 Пробовал меня и что то результата не увидел Такое обычно выносят в файл локализации... Quote Share this post Link to post Short link Share on other sites
IzeBerg 128 #288571 Posted August 24, 2015 В начало скрипта поставь: # -*- coding: utf-8 -*- И поменяй кодировку файла на UTF-8. Quote Share this post Link to post Short link Share on other sites
goofy67 55 #288572 Posted August 24, 2015 msg = u'<font color="#cc9933"><b>АБВГД</b></font>' Quote Share this post Link to post Short link Share on other sites
Ekspoint 2,122 #288584 Posted August 24, 2015 # -*- coding: utf-8-sig -*- from gui.SystemMessages import SM_TYPE from gui.SystemMessages import pushMessage from gui.Scaleform.daapi.view.lobby.LobbyView import LobbyView def New_onLobbyPlayer(self): global Show Old_onLobbyPlayer(self) if not Show: Show = True pushMessage(u'<font color="#D042F3">Ляля</font>', SM_TYPE.GameGreeting) Show = False Old_onLobbyPlayer = LobbyView._populate LobbyView._populate = New_onLobbyPlayer Quote Share this post Link to post Short link Share on other sites
Vampire_BY 3 #288595 Posted August 24, 2015 Всем спасибо все заработало Quote Share this post Link to post Short link Share on other sites