I have a complex algorithm, one module is written in Python and another in JavaScript.
At some point these modules calculate string length.
The problem is when the text contains emojis, Python and JS give different results.
Example:
- '' Python len: 1 ; JS len: 2
- '' Python len: 2 ; JS len: 4
The JS's length is more convenient in my case. Is there a way to make Python3 calculate the emoji's length as JS does?