You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Martynas Jusevičius <ma...@atomgraph.com> on 2019/08/31 11:12:26 UTC

% character in mailto: URI

Hi,

I'm getting this warning from riot (Jena 3.6.0):

    Bad IRI: <ma...@us.ibm.com> Code:
30/ILLEGAL_PERCENT_ENCODING in PATH: The host component a percent
occurred without two following hexadecimal digits.

Is <LS...@us.ibm.com> not a legal mailto: URI? Or does it
need to be encoded somehow?

Martynas

Re: % character in mailto: URI

Posted by Conal Tuohy <co...@gmail.com>.
On Sat, 31 Aug 2019 at 21:12, Martynas Jusevičius <ma...@atomgraph.com>
wrote:

> Hi,
>
> I'm getting this warning from riot (Jena 3.6.0):
>
>     Bad IRI: <ma...@us.ibm.com> Code:
> 30/ILLEGAL_PERCENT_ENCODING in PATH: The host component a percent
> occurred without two following hexadecimal digits.
>
> Is <LS...@us.ibm.com> not a legal mailto: URI? Or does it
> need to be encoded somehow?


Yes the % character is reserved and must be encoded as %25. See
https://tools.ietf.org/html/rfc6068#page-10

-- 
Conal Tuohy
http://conaltuohy.com/
@conal_tuohy
+61-466-324297

Re: % character in mailto: URI

Posted by Kevin Dreßler <kv...@gmail.com>.
Possible origin of this weird percent character (for the curious): 
http://www.faqs.org/docs/linux_network/x-087-2-mail.address.html <http://www.faqs.org/docs/linux_network/x-087-2-mail.address.html> (17.3.3).

In this case, you could also sanitize your dataset by removing the strings starting at the percent character up to the @ character from all mailto: URIs in your dataset.


> On 31. Aug 2019, at 13:50, Laura Morales <la...@mail.com> wrote:
> 
>> Is <LS...@us.ibm.com> not a legal mailto: URI? Or does it
>> need to be encoded somehow?
> 
> That is not a legal URI, strictly speaking. Look up https://en.wikipedia.org/wiki/Percent-encoding
> I've never in my life seen an email address with a percent sign, but if you *must* use it then you have to encode it, it becomes something like <LS...@us.ibm.com>


Re: % character in mailto: URI

Posted by Laura Morales <la...@mail.com>.
> Is <LS...@us.ibm.com> not a legal mailto: URI? Or does it
> need to be encoded somehow?

That is not a legal URI, strictly speaking. Look up https://en.wikipedia.org/wiki/Percent-encoding
I've never in my life seen an email address with a percent sign, but if you *must* use it then you have to encode it, it becomes something like <LS...@us.ibm.com>