Re: [q-lang-users] More Unicode queries.
Brought to you by:
agraef
From: Rob H. <hub...@gm...> - 2008-01-14 16:57:26
|
> > Finally, can the Unicode characters also be escaped by name? > > No. Are there other languages which offer this? Python: \N{name} e.g. \N{LATIN SMALL LETTER I WITH DIAERESIS} or \N{EM DASH} e.g. in str = u'Encyclop\N{LATIN SMALL LETTER AE}dia' [I believe Perl is similar.] There's something similar in XML: character entities such as ï — defined in the DTD for XHTML <!ENTITY iuml "ï" > <!ENTITY mdash "—" > so I suppose these could then be used in XSLT if you count that as a programming language. I'm not sure there's sufficient need for something similar in Q. (Originally, I just wondered whether if might be available "for free" through a library used to implement Unicode support in Q.) Thanks, Rob. |