<HTML dir=ltr><HEAD><TITLE>Re: [rt-users] REST: Special characters in custom fields</TITLE>
<META content="text/html; charset=unicode" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16625"></HEAD>
<BODY>
<DIV dir=ltr id=idOWAReplyText91005>
<DIV dir=ltr><FONT color=#000000 size=2 face=Arial>
<DIV dir=ltr>I had to change the code to allow the pound sign.</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>rt/lib/RT/Interface/REST.pm   line 69 (in RT 3.8.1):</DIV>
<DIV dir=ltr>-    my $CF_char = '[\sa-z0-9_ :()/-]';<BR>+    my $CF_char = '[\sa-z0-9_ #:()/-]';<BR></DIV>
<DIV dir=ltr>Ryan</DIV></FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> rt-users-bounces@lists.bestpractical.com on behalf of Kevin Falcone<BR><B>Sent:</B> Wed 8/11/2010 8:15 AM<BR><B>To:</B> rt-users@lists.bestpractical.com<BR><B>Subject:</B> Re: [rt-users] REST: Special characters in custom fields<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>On Wed, Aug 11, 2010 at 02:18:51AM -0700, FOSTER Ryan * SDC wrote:<BR>>    I am using the REST interface to create and update tickets, as described in the wiki<BR>>    ([1]<A href="http://wiki.bestpractical.com/view/REST">http://wiki.bestpractical.com/view/REST</A>). However, I am running into a problem with some<BR>>    custom fields that have a hash/pound symbol (#) as part of the name. Other custom fields work<BR>>    fine.<BR>><BR>>    For example, when attempting to update a ticket I get a response like this:<BR>><BR>>    RT/3.8.1 409 Syntax Error<BR>>    # Syntax error.<BR>>    cf-A Custom Field: aaa<BR>>    >> cf-Another Field #: 123<BR>>    cf-Contact Name: Ryan<BR>><BR>>    I get the same error whether I url encode the data or not. Is there a special way to escape or<BR>>    encode special characters to avoid this error?<BR><BR>Have you made it work with bin/rt and looked at the generated data<BR>using RTDEBUG=3 bin/rt ?<BR><BR>-kevin<BR></FONT></P></DIV></BODY></HTML>