laptop and a wrench

不具合

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.

最後に公開された状態: August 17, 2021 ArcGIS for Desktop
不具合 ID 番号 NIM093452
送信されましたJuly 26, 2013
最終更新日June 5, 2024
適用対象ArcGIS for Desktop
見つかったバージョン10.1
オペレーティング システムWindows OS
オペレーティング システムのバージョン7
ステータスKnown Limit

参考情報

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"Ö")`.

対処法

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

再現の手順

不具合 ID: NIM093452

ソフトウェア:

  • ArcGIS for Desktop

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動