windows 7 - Have to copy twice to correctly copy Chinese characters

07
2014-07
  • welkin

    I'm using Windows 7, I can view Chinese characters fine on webpages, but when I copy and paste them somewhere, they show up as ???'s. This is probably because I don't have Eastern Asian languages properly set up on my computer.

    However, the strange thing is, if I copy twice (e.g. press Ctrl+C twice consecutively), then the characters will show up properly. So my question is, why do Ctrl+C and Ctrl+C × 2 put different data in the clipboard?

    I hope I have described the scenario adequately. It's been puzzling me for a while, and I'd really appreciate it if someone could explain this!

  • Answers
    Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

    Related Question

    windows 7 - Help with PuTTY Terminal Settings - Unrecognized Characters
  • AJ.

    I am running PuTTY on Windows 7/64-bit laptop. I am connecting to an Ubuntu 9.10/64-bit system running OpenSSH_5.1p1 Debian-6ubuntu2. When I am running some command, the output contains unrecognized characters, like this:

    mod_helloworld.c:1: error: expected â)â before â*â token
    mod_helloworld.c:28: error: expected â)â before â*â token
    mod_helloworld.c:33: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âAP_MODULE_DECLARE_DATAâ
    

    However, when I run this command from a terminal directly on the Ubuntu system, the output is clear:

    mod_helloworld.c:1: error: expected `)` before `*` token
    mod_helloworld.c:28: error: expected `)` before `*` token
    mod_helloworld.c:33: error: expected `=`, `,`, `;`, `asm` or `__attribute__` before `AP_MODULE_DECLARE_DATA`
    

    So it appears to be the "back-tick" character causing the problem. Any idea how I can correct this via PuTTY settings?

    Thanks, -aj


  • Related Answers
  • 8088

    PuTTY is interpreting the characters being sent by the terminal incorrectly.

    You can change the character set under the Window category in the Translation settings. Change the Received data assumed to be in which character set: to the correct character set. UTF-8 worked for me.

    alt text