Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible bug in utf8ToUnicode() #10

Closed
marcochiodo opened this issue May 22, 2019 · 1 comment 路 Fixed by #14
Closed

Possible bug in utf8ToUnicode() #10

marcochiodo opened this issue May 22, 2019 · 1 comment 路 Fixed by #14

Comments

@marcochiodo
Copy link

Hi,

It seems that the utf8ToUnicode () function returns an unexpected result when there are more special utf8 characters in the string such as emojii.

Considering the following character: "馃槑" ( https://emojipedia.org/smiling-face-with-sunglasses/ )

When the function is called, passing a string containing a single emojii, it returns an array with a single integer value 2008.

When instead the string contains 2 emojii, the function returns an array containing 3 integer values: 2008, 944, 2008

code snipped

immagine

output

immagine

@juliangut
Copy link
Member

Thanks @marcochiodo, it's been fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants