How does “cut and paste” affect character encoding and what can go wrong?

前端 未结 2 1599
渐次进展
渐次进展 2020-12-05 10:48

I have a document A in encoding A displayed in tool A and a document B in encoding B displayed in tool B. If I cut and paste (part of) B into A what might be the resultant c

2条回答
  •  既然无缘
    2020-12-05 11:12

    This is a very good question. When you copy/paste, exactly what is copied/pasted - CHARACTERS or BYTES?. And if BYTES, what encoding are they in?

    From the answers, it sounds like the answer is "it depends". Different programs will put different things in the clipboard, sometimes placing multiple representations.

    Then the pasting program needs to pick the best one and "do the right thing" with it.

提交回复
热议问题