W3C home > Mailing lists > Public > public-cwm-bugs@w3.org > April 2005

BUG: utf-8 strings with log:N3String

From: Yoshio FUKUSHIGE <fuku@w3.org>
Date: Wed, 6 Apr 2005 18:54:51 +0900
Message-ID: <004601c53a8e$ad302db0$f1e41b85@steelball>
To: <public-cwm-bugs@w3.org>

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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:52:00 UTC