<div dir="ltr"><div><div>Hello Junxiao,<br><br></div>I solved the problem. It has been my mistake.</div><div>The string has a dirty content that I forgot to remove; that's the reason why <br></div><div>I have strange content before the name of the file.<br></div><div><br></div><div>Thank you.</div><div>Giuseppe.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-12-15 13:15 GMT+01:00 Junxiao Shi <span dir="ltr"><<a href="mailto:shijunxiao@email.arizona.edu" target="_blank">shijunxiao@email.arizona.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="auto">Hi Giuseppe</div><div dir="auto"><br></div><div dir="auto">toUri() is, in fact, completely defined. SeeĀ <a href="https://named-data.net/doc/NDN-TLV/current/name.html#ndn-uri-scheme" target="_blank">https://named-data.net/<wbr>doc/NDN-TLV/current/name.html#<wbr>ndn-uri-scheme</a></div><div dir="auto">Your problem lies in the consumer application, which sent an Interest with this unexpected name in the first place.</div><div dir="auto">Can you show the consumer code? (reply-all to nfd-dev mailing list, do not send to individual developers)</div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao</div><br><div class="gmail_quote"><div><div class="h5"><div>On Fri, Dec 15, 2017 at 05:28 Giuseppe Carella <<a href="mailto:gcarella228@gmail.com" target="_blank">gcarella228@gmail.com</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div><div><div>Good morning community,<br><br></div>I have a problem every time I extract a prefix from the interest object.</div><div>This is what I get: "app1/ping/ndn%3A%2F%<wbr>2Flocalhost%3A8000%2FMyFile.<wbr>txt"</div><div>What I would like to get is "app1/ping/MyFile.txt".</div><div>For the extraction of the prefix I am using the method "interest.getName().toUri()".</div><div>I know that the method "toUri()" is not completely defined; therefore is there an alternative way to get the right prefix?</div><div><br></div><div>Thank you.</div><div>Giuseppe.<br></div></div></div></div>
______________________________<wbr>_________________<br>
Ndn-interest mailing list<br>
<a href="mailto:Ndn-interest@lists.cs.ucla.edu" target="_blank">Ndn-interest@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/<wbr>mailman/listinfo/ndn-interest</a><br>
</blockquote></div></div>
</blockquote></div><br></div>