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.