BUG: utf-8 strings with log:N3String

Hi,

With
---------
@prefix log: <http://www.w3.org/2000/10/swap/log#>.


{{:a :b :c} log:n3String ?x} => {?x a :interesting}.
---------
, it works.

i.e. I get (with --think option)
---------
     @prefix : <#> .

    """     @prefix : <file:/cygdrive/c/home/gomi.cwm#> .

    :a     :b :c .

"""     a :interesting .
---------

However,
with
---------
@prefix log: <http://www.w3.org/2000/10/swap/log#>.


{{:あ :b :c} log:n3String ?x} => {?x a :interesting}.
---------

I get an error message

---------
  File "/usr/local/cwm-1.0.0/swap/notation3.py", line 1173, in writeEncoded
    return self._writeRaw(str.encode('utf-8'))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 64: 
ordinal not in range(128)
---------

I also get the same error message when I replaced the original :c with 
literal "う".

Is this a bug?

> cwm -version
#Processed by Id: cwm.py,v 1.164 2004/10/28 17:41:59 timbl Exp
        #    using base file:/cygdrive/c/home/

Thanks in advance

--
Yoshio Fukushige
W3C fellow at Keio
5322 Endo Fujisawa Kanagawa 252-8520
Tel. +81-466-49-1170
Fax. +81-466-49-1171
fuku@w3.org

Matsushtia Electric Industrial
fukushige.yoshio@jp.panasonic.com

Received on Wednesday, 6 April 2005 09:54:56 UTC