3

I am encountering an unusual issue while working with Japanese Kanji characters. I use Adobe Illustrator for some of my tasks, and often need to copy text from Illustrator and paste it into Visual Studio Code. I'm using a Mac.

The problem is that occasionally, a single Kanji character changes upon pasting into VS Code. Most of the time, everything works fine, and all characters are copied and pasted correctly. However, every once in a while, one character in the pasted text will be different from the original character in Illustrator. The character that changes seems to be random, and there's no clear pattern to when this happens.

For examples, in some instances, the character '検' becomes '檢', '削' becomes '消', and '要' becomes '票'. While these characters look somewhat similar, they carry different meanings.

Here are some points to consider:

The issue is not consistent. It happens occasionally. Only one character changes, the rest of the text remains the same. The issue is not related to displaying the characters in VS Code, as they generally display correctly. Copying the text to another text editor does not replicate the issue. I've ruled out encoding issues as all characters usually display correctly. I've also considered clipboard issues, but I'm unsure how to proceed with this.

Has anyone experienced a similar problem or could provide some insight into what might be causing this, and how to fix it?

Thank you in advance for any assistance.

6
  • 1
    Hello, showing examples of the characters that cause this would help you get an answer.
    – Destroy666
    Commented May 12, 2023 at 7:39
  • Hi, thank you for your response. Sure, I can provide some examples. In some instances, the character '検' becomes '檢', '削' becomes '消', and '要' becomes '票'. While these characters look somewhat similar, they carry different meanings.
    – Pascal
    Commented May 12, 2023 at 7:47
  • Add any extra info to the question, not only comments.
    – Destroy666
    Commented May 12, 2023 at 7:48
  • Thanks for the precision. I'll be more careful next time.
    – Pascal
    Commented May 12, 2023 at 7:55
  • Do you have something like marketplace.visualstudio.com/… in VSCode doing unicode substitution? I wouldn't expect it to operate on Kanji, but maybe it has a bug? Those characters are not even close in the unicode character set compart.com/en/unicode/U+6AA2 and compart.com/en/unicode/U+691C
    – Mokubai
    Commented May 12, 2023 at 9:29

0

You must log in to answer this question.

Browse other questions tagged .