Mike Gates
Mike Gates

Reputation: 1904

Ironpython string replace on 16-bit unicode character

In 2.6.4, is there a reason I can't do:

"my string".replace(u'\u200E', '')

without getting an index exception? This looks like a bug in IronPython but I'm not sure...

Upvotes: 1

Views: 1162

Answers (2)

user4429746
user4429746

Reputation: 1

try this: "my string".replace(u'\\u200E', '')

Upvotes: 0

Mike Gates
Mike Gates

Reputation: 1904

It is a bug and I have filed a patch for it.

Upvotes: 1

Related Questions