- From: Sandro Hawke <sandro@w3.org>
- Date: Thu, 16 May 2013 12:28:57 -0400
- To: Andy Seaborne <andy.seaborne@epimorphics.com>
- CC: RDF-WG <public-rdf-wg@w3.org>
On 05/16/2013 07:47 AM, Andy Seaborne wrote:
>
>> == Why are there unicode characters disallowed from xsd:string 
>> literals? ==
>>
>> * Because strings are intended to be displayed; the disallowed
>> characters (like null) can't be displayed.  (Other datatypes can be used
>> for representing binary data, although large binary items are best
>> handled as separate resources.)
>
> Not accurate.
>
> 1/ It's XML Schema datatypes that defines xs:string, not RDF.
>
> 2/ In XML Schema Datatypes 1.1 \u0001 is legal as are most values, 
> just not all. It's not about display any more.
Thanks for the correction.  I thought someone said recently that control 
characters were disallowed, but checking for myself I see that 
*basically* all unicode characters are allowed in strings. The only 
things disallowed are NUL and the surrogate block entries; arguably 
those aren't really characters at all.
           -- Sandro
Received on Thursday, 16 May 2013 16:29:46 UTC