How to replace characters in a string?

Dan Stromberg drsalists at gmail.com
Wed Jun 8 09:45:01 EDT 2022


On Wed, Jun 8, 2022 at 1:11 AM Dave <dave at looktowindward.com> wrote:

> I've got two that appear to be identical, but fail to compare. After
> getting the ascii encoding I see that they are indeed different, my
> question is how can I replace the \u2019m with a regular single quote mark
> (or apostrophe)?
>

Perhaps try https://pypi.org/project/Unidecode/ ?


More information about the Python-list mailing list