I am using tr (GNU coreutils v8.32) to transliterate non-basic-Latin characters into basic Latin, and it is replacing them with characters I didn't tell it to or more than one of the desired character.
Example:
% echo é | tr é e
> ee
What's going on?
I think the issue is that
tris oriented to the transliteration of single bytes, but if you look at youré, you will see it is two bytes, plus a linefeed:I think you need to look to
sedwhich is oriented towards patterns, however long they may be: