laptop and a wrench

Bug

The Python Replace statement in the Field Calculator does not accept umlauts, Ä, ä, Ö, ö, Ü, ü, and ß in ArcGIS 10.1 service pack (SP) 1 and ArcGIS 10.2. However, all of these umlauts are accepted in ArcGIS Desktop 10.0 service pack (SP) 2.

Zuletzt veröffentlicht: August 17, 2021 ArcGIS for Desktop
Bug-ID-Nummer NIM093452
EingereichtJuly 26, 2013
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS for Desktop
Gefunden in Version10.1
BetriebssystemWindows OS
Betriebssystemversion7
StatusKnown Limit

Zusätzliche Informationen

Python's two string literals (set by wrapping a string using single quotes (') or double quotes (")) are expected to contain ASCII encodings, so to declare the replacement argument as a Unicode string (which supports umlaut), do the following: `!ttt!.replace( "O", u"Ö")`.

Workaround

This workflow can be performed using the VBScript replace tool, e.g. replace([TEST], "statement", "<umlaut>").

To replace multiple umlauts in a single field, for example. to remove all instances of difference umlauts, string multiple replace functions together in the pre-script logic window using VBS:

pre-logic script code:

dim f1, f2, f3, f4, f5

f1 = Replace([TEST], "A", "Ä")

f2 = Replace(f1, "O", "Ö")

f3 = Replace(f2, "U", "Ü")

f4 = Replace(f3, "B", "ß")

f5 = Replace(f4, "a", "ä")

test = 

f5

Schritte zur Reproduzierung

Bug-ID: NIM093452

Software:

  • ArcGIS for Desktop

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln