Vampire_BY Posted August 24, 2015 Share 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 Link to comment Short link Share on other sites More sharing options...
Yupi Posted August 24, 2015 Share Posted August 24, 2015 Кодировочка? @ Quote Link to comment Short link Share on other sites More sharing options...
Vampire_BY Posted August 24, 2015 Author Share Posted August 24, 2015 Кодировочка? Пробовал меня и что то результата не увидел @ Quote Link to comment Short link Share on other sites More sharing options...
SkepticalFox Posted August 24, 2015 Share Posted August 24, 2015 Пробовал меня и что то результата не увидел Такое обычно выносят в файл локализации... @ Quote Link to comment Short link Share on other sites More sharing options...
IzeBerg Posted August 24, 2015 Share Posted August 24, 2015 В начало скрипта поставь: # -*- coding: utf-8 -*- И поменяй кодировку файла на UTF-8. @ Quote Link to comment Short link Share on other sites More sharing options...
goofy67 Posted August 24, 2015 Share Posted August 24, 2015 msg = u'<font color="#cc9933"><b>АБВГД</b></font>' @ Quote Link to comment Short link Share on other sites More sharing options...
Ekspoint Posted August 24, 2015 Share 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 Link to comment Short link Share on other sites More sharing options...
Vampire_BY Posted August 24, 2015 Author Share Posted August 24, 2015 Всем спасибо все заработало @ Quote Link to comment Short link Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.