You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Honestly not sure if this should be a separate tool, added to "Text to Unicode", be made part of a JSON tool, etc, since it touches so many concepts (Unicode, JSON, escaping, encoding, etc).
Validations
Check the feature is not already implemented in the project.
Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Check that the feature can be implemented in a client side only app (IT-Tools is client side only, no server).
The text was updated successfully, but these errors were encountered:
My PR #1087 will fix this if merged — it adds more conversion options to the text-to-unicode tool. One of those options is UTF-16 Code Units, of which 💯 ↔ \uD83D\uDCAF is an example.
Note that it isn't accurate to call this "JSON Unicode", as the best* way of encoding 💯 in JSON is as a literal 💯 Unicode character. For example, JavaScript's JSON.stringify just uses the literal characters where possible, and JSON.parse accepts them with no problem:
But the JSON spec doesn't require that parsers convert the surrogate pair to its corresponding code point, so it's not guaranteed that even fully spec-compliant parsers will "do the right thing" here.
*For most use cases. If you can't guarantee that the consumer will use UTF-8 as required by RFC 8259, but you can guarantee that the consumer will handle surrogate pairs correctly, then it'd make sense to use the surrogate pair. But that seems like a pretty niche situation.
What type of request is this?
New tool idea
Clear and concise description of the feature you are proposing
Convert between unicode symbols (💯) and JSON escape sequences (\uD83D\uDCAF).
Is their example of this tool in the wild?
https://magictool.ai/tool/unicode-decoder-encoder/
Additional context
Honestly not sure if this should be a separate tool, added to "Text to Unicode", be made part of a JSON tool, etc, since it touches so many concepts (Unicode, JSON, escaping, encoding, etc).
Validations
The text was updated successfully, but these errors were encountered: