[parenscript-devel] suggestion for unicode output

Boris Smilga boris.smilga at gmail.com
Mon Dec 31 17:04:17 UTC 2012


On 31 Dec 2012, at 20:42, Vladimir Sedach wrote:

> I never noticed that Parenscript was escaping those characters in
> string literals. For the record, what happens is:
>
> PS> (ps (фоо бар "фоо бар"))
> "фоо(бар, '\\u0444\\u043E\\u043E \\u0431\\u0430\\u0440');"
> PS>
>
> I agree it's better to not escape non-ASCII, non-control characters in
> strings. Encoding itself is something that is up to the external
> format of the stream you are outputting Parenscript code to.
>
> I will make a patch to fix this soon.


Are you, however, aware of this pitfall: https://medium.com/joys-of- 
javascript/42a28471221d ?

  — B. Smilga





More information about the parenscript-devel mailing list