Re: Best way to output astral characters
Tech4Him via Yaml-core <[email protected]> Wed, 6 Sep 2017 19:14:43 +0000 (UTC)
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <[email protected]> |
Thank you, that is exactly what I am looking for.
CalebĀ In Him... I am complete (Col 2:9-10), confident that God will complete the good work he started
(Phil 1:6), God's temple (1 Cor 3:16), more than a conqueror (Romans 8:37), His child (Eph 1).
On Wednesday, September 6, 2017 12:46 PM, Leon Timmermans <[email protected]> wrote:
On Wed, Sep 6, 2017 at 4:22 PM, Tech4Him <inchristalway-tech4him-/[email protected]> wrote:
Right now we are using the nodeca/js-yaml library, which outputs as surrogate pairs. I was trying to get this changed to either a single escape (like your example), or, if it was considered a printable character, just output it directly. But both I and (I think) the maintainer were a little confused on if there was a correct way to do it, or if, in fact, we should be outputting as surrogate pairs (see nodeca/js-yaml#368 and #369).
The YAML spec explicitly bans literal surrogate pairs, but is silent on escaped surrogates. Nothing in it suggests they are supported, except the suggestion of JSON compatibility. \U on the other hand is required to be supported. I don't think putting a literal astral printable character is erroneous, but quoted is probably safer whenever possible.
Leon
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Yaml-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core