开发者

Ironpython string replace on 16-bit unicode character

开发者 https://www.devze.com 2022-12-17 04:56 出处:网络
In 2.6.4, is there a reason I can\'t do: \"my string\".replace(u\'\\u2开发者_Go百科00E\', \'\') without getting an index exception?This looks like a bug in IronPython but I\'m not sure...It is a bu

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

"my string".replace(u'\u2开发者_Go百科00E', '')

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


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号