function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mitch McConnellMitch McConnell 

Why is 0xa0 inserted in some text field strings?

I have an external script in Python that is taking exception to (ahem) an embedded 0xa0 in a Salesforce
custom object text string.

I understand the various ways that I can handle this in the script, but my question is more about "how does
this non-ASCII character get in the string?  I would not expect one to be able to do it via the keyboard (and
I do not think this has been done on purpose.     If you look at the data in a hex editor, it simply looks like 

36 2e 32 20 72 65 6c 65 61 73 65 23 20 a0 41 64       6.2 release.  . Ad

So you cannot "see" the 0xa0 in the GUI.

Any ideas?