Ctrl c Chinese characters to VNC, Chinese characters have been transcoded

Source: Internet
Author: User

In order to test the application of multi-language character support, I found a Chinese and Nordic text, hoping to upload these words to Elasticsearch, and can be displayed correctly.

First Test the Nordic text, everything OK.

But the Chinese copy to the VNC client (Linux) is a question mark, because Linux is not able to play Chinese, so the display garbled I did not care, I think the Chinese code is nothing but a piece of binary things, I did not change anything, show question mark is just Linux can not parse it. Ran the next program, and then to Elasticsearch query results, the Chinese part still shows the question mark.

Next to a few ideas, first of all, the program should be set charset, I do not set, just like Apche email, the message is garbled because there is no set utf-8 charset, if this is the reason, it is difficult to find a solution. Second, that Tuo binary is definitely where the transcoding, making the Chinese characters uploaded to Elasticsearch is not the original "Chinese characters", but it is in which to turn the code, also do not know, may be on the HTTP connection. Finally, it's not about installing a language pack on a Linux system, because my program runs on my own Mac without problems and can handle multiple words correctly.

and colleagues chat, because the problem of multi-language has been troubling everyone, in Perl written in the program also has non-ASCII code special processing situation, so there is this problem, we are more helpless.

I ran to find two uncles, described the problem, he said no ideas, to specific analysis. I do not know when, I said that they are the Chinese characters Ctrl + C copy to the Linux terminal, two uncle said Ctrl + C may have problems. Let me try the SCP copy. I think it is possible, run back to test, put a paragraph of Chinese characters CTRL + C to terminal, and then copied out, sure enough, it has not come out of the Chinese characters. The operation is irreversible, obviously, during the transcoding, problem solving.

So there is a problem, after spending a certain amount of time to find out, hurriedly ask the old colleague. And they describe the problem to clear ideas, to exclude the most unlikely option.

In fact, the text encoding, no matter where to flow from, the binary should not change, regardless of the hardware location changes also network transmission, even if the real change, there should be a Marshall, unmarshall process, and this process is transparent to us, as to garbled or not, See if the current environment has the ability to display this lump binary. and clipboard to the text transcoding, is really heresy.

Ctrl c Chinese characters to VNC, Chinese characters have been transcoded

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.