Support for astral symbols #1

Closed
opened 2013-06-18 06:12:27 -07:00 by mathiasbynens · 1 comment
mathiasbynens commented 2013-06-18 06:12:27 -07:00 (Migrated from github.com)

This is flawed for code points greater than U+FFFF. Since there are over a million of those, it would be good to have this fixed :)

For example, for U+1D306, this library returns:

U+01D306: \xED\xA0\xB4\xED\xBC\x86

It should be \xF0\x9D\x8C\x86.

This is flawed for code points greater than U+FFFF. Since there are over a million of those, it would be good to have this fixed :) For example, for U+1D306, this library returns: ``` U+01D306: \xED\xA0\xB4\xED\xBC\x86 ``` It should be `\xF0\x9D\x8C\x86`.
ryanmcgrath commented 2016-02-18 00:18:46 -08:00 (Migrated from github.com)

For some reason I never closed this, haha. Your utf8 library is by far a more comprehensive solution, and has been for some time - created this as a stopgap measure in the early days of Node.js. I should just update the README to point to yours at some point here.

For some reason I never closed this, haha. Your [utf8](https://www.npmjs.com/package/utf8) library is by far a more comprehensive solution, and has been for some time - created this as a stopgap measure in the early days of Node.js. I should just update the README to point to yours at some point here.
This repository is archived. You cannot comment on issues.
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: code/node-utf8#1
No description provided.