[parenscript-devel] suggestion for unicode output
vsedach at gmail.com
Mon Dec 31 16:42:57 UTC 2012
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');"
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.
On Mon, Dec 31, 2012 at 6:06 AM, Nitralime <nitralime at googlemail.com> wrote:
> UTF-8 is by no means more readable than the other encoding schemata
> if your code points are beyond ISO-8859-1. You can't generally even say
> how long your string is by just looking at the UTF-8 output!!
> On 12/31/2012 04:07 AM, Canhua wrote:
>> Do you think it good idea to output unicode as utf-8 bytes
>> rather than unicode code number like \u53D7 ?
>> That would be more readable for output that is full of unicode
>> parenscript-devel mailing list
>> parenscript-devel at common-lisp.net
> parenscript-devel mailing list
> parenscript-devel at common-lisp.net
More information about the parenscript-devel