We're updating the issue view to help you get more done. 

Escaping special characters in URI

Description

Hi,

When the statement below is parsed using the NTriplesParser, the encoded characters in the subject are decoded (in NTriplesUtil.unescapeString(String))

<http://www.acme.org/\u003CMicroRR\u003E> <http://www.acme.org/p> <http://www.acme.org/Class> .

which returns the following:

However, when I create a Value from that subject using NTriplesUtil.toNTriplesString(subject), the special characters '<' and '>' are not encoded back (in NTriplesUtil.escapeString(String)).

I think that the behaviour towards special characters should be consistent here, i.e., if decoded in unescapeString, then they should be encoded also in escapeString.

Or, am I doing something wrong ?

Best regards,

Environment

None

Status

Assignee

JeenB

Reporter

stephane campinas

Labels

Components

Fix versions

Affects versions

2.6.10
2.6.6

Priority

Major