<p>Version 4.3.4 fails to escape the string that contains Unicode characters:<br>
$var(test) = "Foobar s.à.r.l.";<br>
$var(test_escaped) = $(var(test){s.escape.user});</p>

<p>Mar 23 16:00:28 sp1 (local7.err) proxy[27853]: ERROR:  [strcommon.c:241]: escape_user(): invalid escaped character <4294967235><br>
Mar 23 16:00:28 sp1 (local7.err) proxy[27853]: ERROR:  [lvalue.c:345]: lval_pvar_assign(): non existing right pvar<br>
Mar 23 16:00:28 sp1 (local7.err) proxy[27853]: ERROR:  [lvalue.c:405]: lval_assign(): assignment failed at pos: (701,35-701,97)</p>

<p>is there a way to ignore those characters or is it something we have to live with?</p>

<p>Some background: we are storing some user-defined data as custom attributes in acc src_leg/dst_leg. As you know the fields in src/dst_leg are pipe-separated. In order to prevent the user from hijacking the attributes we have devided to escape the user-provided fields. This is when we realized that this is limited to latin1 encoding. In theory we can escape it using lua just wanted to avoid the overhead of calling the interpreter too often.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/kamailio/kamailio/issues/549">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AF36Za5EaoX5haRmtiIZicFhIx6gxYs3ks5pwWgpgaJpZM4H3OnX.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/549"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>