<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: string function to replace all special ascii characters as ? in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/string-function-to-replace-all-special-ascii-characters-as/qaa-p/13848109#M4878952</link>
    <description>&lt;P&gt;Be careful: &lt;DEL&gt;The Empire&lt;/DEL&gt; HANA Strikes Back...&lt;/P&gt;</description>
    <pubDate>Wed, 27 Mar 2013 12:18:21 GMT</pubDate>
    <dc:creator>VolkerBarth</dc:creator>
    <dc:date>2013-03-27T12:18:21Z</dc:date>
    <item>
      <title>string function to replace all special ascii characters as ?</title>
      <link>https://community.sap.com/t5/technology-q-a/string-function-to-replace-all-special-ascii-characters-as/qaq-p/13848104</link>
      <description>&lt;P&gt;I found this select syntax online but not able to make it work. Please help.&lt;/P&gt;
&lt;P&gt;I have a table that have &lt;STRONG&gt;colName&lt;/STRONG&gt; as TEXT column that has special ascii characters from 0 thru 31.
I an trying to do a select for this &lt;STRONG&gt;colName&lt;/STRONG&gt; that will replace all special characters as '?'
What am I doing wrong in this select?&lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="nb"&gt;select&lt;/SPAN&gt; &lt;SPAN class="n"&gt;REPLACE&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="o"&gt;**&lt;/SPAN&gt;&lt;SPAN class="n"&gt;colName&lt;/SPAN&gt;&lt;SPAN class="o"&gt;**&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; 
         &lt;SPAN class="n"&gt;SUBSTRING&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="o"&gt;**&lt;/SPAN&gt;&lt;SPAN class="n"&gt;colName&lt;/SPAN&gt;&lt;SPAN class="o"&gt;**&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; 
            &lt;SPAN class="n"&gt;PATINDEX&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s"&gt;'%[^a-zA-Z0-9 ]%'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; 
                  &lt;SPAN class="o"&gt;**&lt;/SPAN&gt;&lt;SPAN class="n"&gt;colName&lt;/SPAN&gt;&lt;SPAN class="o"&gt;**&lt;/SPAN&gt; &lt;SPAN class="n"&gt;collate&lt;/SPAN&gt; &lt;SPAN class="n"&gt;Latin1_General_BIN&lt;/SPAN&gt;&lt;SPAN class="p"&gt;),&lt;/SPAN&gt; &lt;SPAN class="mi"&gt;1&lt;/SPAN&gt;&lt;SPAN class="p"&gt;),&lt;/SPAN&gt; &lt;SPAN class="s"&gt;'?'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;from&lt;/SPAN&gt; &lt;SPAN class="n"&gt;table&lt;/SPAN&gt; 
&lt;SPAN class="n"&gt;WHERE&lt;/SPAN&gt; &lt;SPAN class="n"&gt;PATINDEX&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s"&gt;'%[^a-zA-Z0-9 ]%'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="o"&gt;**&lt;/SPAN&gt;&lt;SPAN class="n"&gt;colName&lt;/SPAN&gt;&lt;SPAN class="o"&gt;**&lt;/SPAN&gt; &lt;SPAN class="n"&gt;collate&lt;/SPAN&gt; &lt;SPAN class="n"&gt;Latin1_General_BIN&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt; &lt;SPAN class="o"&gt;&amp;lt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="mi"&gt;0&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 25 Mar 2013 17:00:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/string-function-to-replace-all-special-ascii-characters-as/qaq-p/13848104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-25T17:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: string function to replace all special ascii characters as ?</title>
      <link>https://community.sap.com/t5/technology-q-a/string-function-to-replace-all-special-ascii-characters-as/qaa-p/13848106#M4878949</link>
      <description>&lt;P&gt;What database software are you using? ... I ask because the 'collate Latin1_General_BIN' syntax is not supported by SQL Anywhere ... so where did you find the syntax online.&lt;/P&gt;
&lt;P&gt;Please refer to the SA documentation which you can find at &lt;A href="http://dcx.sybase.com"&gt;http://dcx.sybase.com&lt;/A&gt; - specifically you can find the patindex function &lt;A&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2013 21:47:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/string-function-to-replace-all-special-ascii-characters-as/qaa-p/13848106#M4878949</guid>
      <dc:creator>MarkCulp</dc:creator>
      <dc:date>2013-03-25T21:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: string function to replace all special ascii characters as ?</title>
      <link>https://community.sap.com/t5/technology-q-a/string-function-to-replace-all-special-ascii-characters-as/qaa-p/13848105#M4878948</link>
      <description>&lt;P&gt;Take a look at &lt;A href="http://sqlanywhere-forum.sap.com/questions/309/how-to-strip-several-different-characters-from-a-string"&gt;my answer&lt;/A&gt; to a similar question.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2013 21:51:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/string-function-to-replace-all-special-ascii-characters-as/qaa-p/13848105#M4878948</guid>
      <dc:creator>MarkCulp</dc:creator>
      <dc:date>2013-03-25T21:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: string function to replace all special ascii characters as ?</title>
      <link>https://community.sap.com/t5/technology-q-a/string-function-to-replace-all-special-ascii-characters-as/qaa-p/13848107#M4878950</link>
      <description>&lt;P&gt;We have Adaptive Server Enterprise.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2013 14:49:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/string-function-to-replace-all-special-ascii-characters-as/qaa-p/13848107#M4878950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-26T14:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: string function to replace all special ascii characters as ?</title>
      <link>https://community.sap.com/t5/technology-q-a/string-function-to-replace-all-special-ascii-characters-as/qaa-p/13848108#M4878951</link>
      <description>&lt;P&gt;This isn't the forum you're looking for...&lt;BR /&gt;&lt;IMG alt="droids" src="https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcRNjPF5_qdvRXaBaEZtCG9AVe6vAaj9WAgsmxpuG1zw3kHzQ0bo" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2013 15:41:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/string-function-to-replace-all-special-ascii-characters-as/qaa-p/13848108#M4878951</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2013-03-26T15:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: string function to replace all special ascii characters as ?</title>
      <link>https://community.sap.com/t5/technology-q-a/string-function-to-replace-all-special-ascii-characters-as/qaa-p/13848109#M4878952</link>
      <description>&lt;P&gt;Be careful: &lt;DEL&gt;The Empire&lt;/DEL&gt; HANA Strikes Back...&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2013 12:18:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/string-function-to-replace-all-special-ascii-characters-as/qaa-p/13848109#M4878952</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2013-03-27T12:18:21Z</dc:date>
    </item>
  </channel>
</rss>

