Some times in my tools I need to output Cyrillic text via
Previously in 10.0 it was very easy. I had .py file of the tool saved in UTF8 codepage. This code wrote messages in Cyrillic with system locale 'cp1251':
source_message = u'Some Cyrillic text here' message = source_message.encode('cp1251') arcpy.AddMessage(message)
But in 10.1 the same piece of code writes
<msg>0; to messages.
I have tried several ways of output (utf8, cp1251, unicode) with combinations of saving source .py file in different codepages - no way.
May be anybody faced similar problems in 10.1 ?
PS I am trying to run this tool in ArcCatalog 10.1 sp1