Emojis sometimes split.

Asked 1 years ago, Updated 1 years ago, 348 views

Entering emojis may or may not divide (decompose into two characters).

I think it depends on the web service and application I use, but how does it break up?

I just happened to try Sublimte Text and found that the editor had one character emoji as shown in the attached image, but the title (file name?) part was divided into two characters.

Enter a description of the image here
Enter a description of the image here

I would like to know the reason why it is simply divided.

I'm also asking because I want to get rid of the vague fear that something might go wrong when using string determination (e.g., simple string determination (if statement) or regular expression) or saving it to the database.

unicode

2022-09-30 22:03

1 Answers

Are you using Apple's HFS+ for your file system?
Apple's HFS+ is called NFS (for example, "bu" is written in two characters on the file system: f(U+30D5)+°(U+309a).
The opposite of NFD is called NFC, and the pu is expressed as a single character (U+3D07).
I think that the question is written by dividing the emoji characters.
If the above is Apple's file system issue, the inside of the file should not be comparable because NFC and NFD are written as intended (basically NFC) by the file creator.


2022-09-30 22:03

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.