iOS Smart Punctuation replaces some special characters for visual purposes to other characters. E.g. a normal apostrophe becomes either left or right apostrophes depending on if they're the first character or in between a word.

https://forums.developer.apple.com/thread/89706

https://stackoverflow.com/questions/57983965/override-disable-ios-smart-punctuation-in-textinput