<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>The Name::Component constructor says “Note that this string will be interpreted as is (i.e.,  it will not be interpreted as URI)"</div>
<div><br>
</div>
<div>Try ndn::Name::Component comp(“\xC1.Router”)</div>
<div><br>
</div>
<div>If you want the URI syntax, then use the Name constructor and get the component. </div>
<div><br>
</div>
<div>ndn::Name::Component comp = ndn::Name("%C1.Router”).get(0);</div>
<div><br>
</div>
<div>- Jeff T</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Nfd-dev <<a href="mailto:nfd-dev-bounces@lists.cs.ucla.edu">nfd-dev-bounces@lists.cs.ucla.edu</a>> on behalf of "Muktadir R Chowdhury (mrchwdhr)" <<a href="mailto:mrchwdhr@memphis.edu">mrchwdhr@memphis.edu</a>><br>
<span style="font-weight:bold">Date: </span>Tuesday, October 24, 2017 at 14:00:00<br>
<span style="font-weight:bold">To: </span>nfd-dev <<a href="mailto:nfd-dev@lists.cs.ucla.edu">nfd-dev@lists.cs.ucla.edu</a>><br>
<span style="font-weight:bold">Subject: </span>[Nfd-dev] percent(%) sign in ndn::name<br>
</div>
<div><br>
</div>
<div><style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div dir="ltr">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p>Hi,</p>
<p>When I try to make a ndn::Name::Component out of a string that has percent sign(%), the percent is getting replaced by %25. </p>
<p>For example, ndn::Name::Component comp("%C1.Router") becomes %25C1.Router in comp.toUri().</p>
<p><br>
</p>
<p><span style="font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">Does anyone have a workaround? </span><br>
</p>
<p><br>
</p>
<p>Muktadir</p>
<p><br>
</p>
<p><br>
</p>
</div>
</div>
</div>
</span>
</body>
</html>