On most systems, editors and all other applications work with Unicode strings and copy/paste Unicode strings. Other encodings are only used on input & output, via conversion. The encoding is either implicit in the file format (e.g., .doc) or declared inside the file syntax (e.g., .xml), or not (plain text, usually uses the system default).
Best regards, markus

