@coopertino Thanks, I'll look into it. Smart quotes are a pretty annoying feature for Pythonista because it's on by default for everything, so I overlooked a few places where it shouldn't be enabled. You can work around this by disabling smart quotes system-wide, as @JonB suggested, but I think I should disable this for the search/replace fields in any case.