Unable to localize Python Scripts for ArcToolboxes in the Cyrillic (Russian) language with UTF-16 encoding.
上次发布: August 25, 2014No Product Found
漏洞 ID 编号
NIM044951
已提交
April 30, 2009
上次修改时间
April 2, 2025
适用范围
No Product Found
找到的版本
9.3
修正版本
10.0
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
解决办法
Workaround A: Wrap the Cyrillic strings in the Unicode() python function outlined here: http://docs.python.org/library/functions.html#unicode and add the line #-*-coding:UTF-16-*- to the top of the python file, then save in UTF-16 encoding.Workaround B: Only use CP-1251 encoding when localizing python scripts in the Cyrillic (Russian) language.