RDF encoding test case

Hi Dan,

Here's the test case.
And the traceback:

$ cwm --rdf /tmp/test.rdf


<!-- Processed by Id: cwm.py,v 1.140 2003/09/02 00:22:07 timbl Exp -->
<!--     using base file:/tmp/test.rdf-->


<rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:log="http://www.w3.org/2000/10/swap/log#"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:t="http://norman.walsh.name/knows/taxonomy#">

    <rdf:Description rdf:about="http://norman.walsh.name/2004/01/26/trackback">
        <dc:rights>Copyright © 2004 Norman Walsh. All rights reserved.</dc:rights>
    </rdf:Description>

    <rdf:Description rdf:about="Traceback (most recent call last):
  File "/projects/w3c/swap/cwm.py", line 833, in ?
    doCommand()
  File "/projects/w3c/swap/cwm.py", line 760, in doCommand
    _store.dumpNested(workingContext, _outSink)
  File "/share/projects/w3c/swap/llyn.py", line 1651, in dumpNested
    pp. dumpNested()
  File "/share/projects/w3c/swap/pretty.py", line 377, in dumpNested
    self.dumpFormulaContents(context, self.sink, sorting=1)
  File "/share/projects/w3c/swap/pretty.py", line 406, in dumpFormulaContents
    self._dumpSubject(currentSubject, context, sink, sorting, statements)
  File "/share/projects/w3c/swap/pretty.py", line 468, in _dumpSubject
    self.dumpStatement(sink, s.quad, sorting)
  File "/share/projects/w3c/swap/pretty.py", line 478, in dumpStatement
    self._outputStatement(sink, triple) # Do 1-loops simply
  File "/share/projects/w3c/swap/pretty.py", line 198, in _outputStatement
    sink.makeStatement(self.extern(quad))
  File "/share/projects/w3c/swap/toXML.py", line 194, in makeStatement
    [(RDF_NS_URI+" about", subjn),], self.prefixes)
  File "/share/projects/w3c/swap/toXML.py", line 426, in startElement
    ln, at2 = self.figurePrefix(n, attrs, prefixes)
  File "/share/projects/w3c/swap/toXML.py", line 413, in figurePrefix
    xmldata(self._wr, v, self.attrEsc)
  File "/share/projects/w3c/swap/toXML.py", line 469, in xmldata
    write(str[i:])
  File "/usr/lib/python2.3/codecs.py", line 178, in write
    data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 59: ordinal not in range(128)

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Two starving men cannot be twice as
http://nwalsh.com/            | hungry as one; but two rascals can be
                              | ten times as vicious as one.--George
                              | Bernard Shaw

Received on Monday, 26 January 2004 13:05:26 UTC