I am running into a similar problem with strings containing double quotes (") when just trying to do a simple calculate field to remove "whitespace" with Python. I would hope there is an elegant solution for dealing with these issues as I would believe they could come up quite regularly. I am using the following code: " ".join(!FIELDA!.split()) A workaround when the quote never falls on the last character could be ""+!FIELDA+"" which puts the string in triple quotes, this however fails once again if the last character of the string is a double quote. Why does this process not bracket the string automatically with single quotes when double quotes are present or automatically escape the quotes like a .read() would do?
... View more