漏洞 ID 编号 |
BUG-000117607 |
已提交 | October 22, 2018 |
上次修改时间 | June 5, 2024 |
适用范围 | ArcGIS for Desktop |
找到的版本 | 10.4 |
操作系统 | Windows OS |
操作系统版本 | 10.0 |
状态 | Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
|
附加信息
Both those if statements will be false, so the Reclass will return None, which maps onto NULL. This is as expected.
the value passed into the expression will be a unicode string. See https://docs.python.org/2.5/ref/strings.html
>>> s1 = 'Végétation' # this is a string literal
>>> s2 = u'Végétation' # unicode string
>>> print(s1)
Végétation
>>> print(u2) # both look identical
Végétation
>>> s2==s1 # but they are not equal
False
>>> s1
'V\x82g\x82tation'
>>> u2
u'V\xe9g\xe9tation'
>>>
解决办法
Add encode (UTF-8) in the expression.
重现步骤