laptop and a wrench

Bogue

Attempting to run the reclass function using the Field Calculator on a field using characters with accents results in <NULL> values.

Dernière publication: November 30, 2018 ArcGIS for Desktop
Numéro d’ID de bogue BUG-000117607
EnvoiOctober 22, 2018
Dernière modificationJune 5, 2024
S’applique àArcGIS for Desktop
Version trouvée10.4
Système d’exploitationWindows OS
Version du système d’exploitation10.0
StatutWill Not Be Addressed

Informations supplémentaires

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' >>>

Solution de contournement

Add encode (UTF-8) in the expression.

Étapes pour reproduire

ID de bogue: BUG-000117607

Logiciel:

  • ArcGIS for Desktop

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement