<?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>topic Re: Unespected &amp;quot;%97&amp;quot; as output in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273682#M656642</link>
    <description>&amp;gt;:ABCD%20XY:&lt;BR /&gt;&lt;BR /&gt;This bogus %20 is why you get that %97.  So where do you set Var2?  From some web page?</description>
    <pubDate>Mon, 14 Feb 2011 13:26:06 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2011-02-14T13:26:06Z</dc:date>
    <item>
      <title>Unespected "%97" as output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273669#M656629</link>
      <description>&lt;!--!*#--&gt;I have a script that cript my codes.&lt;BR /&gt;&lt;BR /&gt;It works correctly for a lot of code but it have some problems on the codes that contain the space caracter.&lt;BR /&gt;&lt;BR /&gt;This script execute a java program that cript my code.&lt;BR /&gt;&lt;BR /&gt;I launch the script eith the following command:&lt;BR /&gt;....&lt;BR /&gt;Var2="ABCD XY"&lt;BR /&gt;/opt/java6/bin/java CriptProgr "${Var2}" &lt;BR /&gt;....&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If I run the script I get an output like this&lt;BR /&gt;asdf%97oe&lt;BR /&gt;&lt;BR /&gt;If I run the command by command line&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;# /opt/java6/bin/java CriptProgr "ABCD XY"&lt;BR /&gt;asdf oe&lt;BR /&gt;# &lt;BR /&gt;&lt;BR /&gt;The second result is what I need.&lt;BR /&gt;But I need to have this resylt running a script and I didn't understand why I have "%97" in the result.</description>
      <pubDate>Fri, 11 Feb 2011 16:09:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273669#M656629</guid>
      <dc:creator>gaudiobe</dc:creator>
      <dc:date>2011-02-11T16:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Unespected "%97" as output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273670#M656630</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Check the environment variables from the command line and compare them with what your script uses.&lt;BR /&gt;&lt;BR /&gt;That would probably highlight some&lt;BR /&gt;differences (like TERM, LANG or other&lt;BR /&gt;variables).&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Sat, 12 Feb 2011 10:40:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273670#M656630</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2011-02-12T10:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Unespected "%97" as output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273671#M656631</link>
      <description>I don't see any difference in the variable vs quoted string case.</description>
      <pubDate>Sat, 12 Feb 2011 10:50:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273671#M656631</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-02-12T10:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Unespected "%97" as output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273672#M656632</link>
      <description>I tryied to set the environment variable like the shell environment variable but the result is the same.&lt;BR /&gt;&lt;BR /&gt;what does it means "%97" character?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Feb 2011 11:11:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273672#M656632</guid>
      <dc:creator>gaudiobe</dc:creator>
      <dc:date>2011-02-14T11:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unespected "%97" as output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273673#M656633</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;It looks like your Java program is interpreting the space as a separation of parsed fields. The use of double quotes in the definition of script-level variables behave different from command prompt. Try this inside your script:&lt;BR /&gt;&lt;BR /&gt;Var2="\"ABCD XY\""&lt;BR /&gt;&lt;BR /&gt;By this way we try to force to always have double quotes inside the variable Var2.&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Mon, 14 Feb 2011 11:36:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273673#M656633</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2011-02-14T11:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Unespected "%97" as output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273674#M656634</link>
      <description>&amp;gt;what does it means "%97" character?&lt;BR /&gt;&lt;BR /&gt;I've seen that in HTML as an escape for hex 97.</description>
      <pubDate>Mon, 14 Feb 2011 11:43:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273674#M656634</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-02-14T11:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Unespected "%97" as output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273675#M656635</link>
      <description>Not working.&lt;BR /&gt;&lt;BR /&gt;I bypassed the problem using sed.&lt;BR /&gt;&lt;BR /&gt;opt/java6/bin/java CriptProgr "${Var2}" | sed 's/%97/ /g' &lt;BR /&gt;&lt;BR /&gt;But I still didn't understand why on command line I have a result as output and I have a different result if I run it inside the script.&lt;BR /&gt;&lt;BR /&gt;Another things that I would like to understand is why "%97" appear inside the output and what it means.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;BG</description>
      <pubDate>Mon, 14 Feb 2011 11:45:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273675#M656635</guid>
      <dc:creator>gaudiobe</dc:creator>
      <dc:date>2011-02-14T11:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unespected "%97" as output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273676#M656636</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;I guess that %97 code is not produced by your script, it is an output from Java execution.&lt;BR /&gt;&lt;BR /&gt;Try execute this from your promt to check if obtains the same script behavior:&lt;BR /&gt;#/opt/java6/bin/java CriptProgr ABCD XY&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Mon, 14 Feb 2011 11:55:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273676#M656636</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2011-02-14T11:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unespected "%97" as output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273677#M656637</link>
      <description>I tried to do the following:&lt;BR /&gt;&lt;BR /&gt;CodeTest="${Var2}"&lt;BR /&gt;echo "CodeTest=${CodeTest}" &amp;gt;&amp;gt; ${LogFile}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If I look the output in ${LogFile} i can read the following output:&lt;BR /&gt;CodeTest=asdf%20oe&lt;BR /&gt;&lt;BR /&gt;If I did the same thing with double quote:&lt;BR /&gt;CodeTest="\"${Var2}\""&lt;BR /&gt;echo "CodeTest=${CodeTest}" &amp;gt;&amp;gt; ${LogFile}&lt;BR /&gt;&lt;BR /&gt;output:&lt;BR /&gt;CodeTest="asdf%20oe"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Feb 2011 12:15:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273677#M656637</guid>
      <dc:creator>gaudiobe</dc:creator>
      <dc:date>2011-02-14T12:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unespected "%97" as output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273678#M656638</link>
      <description>Inside the script, Where Var2 value come from?&lt;BR /&gt;Could you show us the script content?</description>
      <pubDate>Mon, 14 Feb 2011 12:23:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273678#M656638</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2011-02-14T12:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Unespected "%97" as output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273679#M656639</link>
      <description>&amp;gt;If I look the output in ${LogFile}: CodeTest=asdf%20oe&lt;BR /&gt;&lt;BR /&gt;I assume you just used more or cat on ${LogFile}?&lt;BR /&gt;&lt;BR /&gt;It seems you have %20 in Var2.  What does this show:&lt;BR /&gt;echo ":$Var2:"&lt;BR /&gt;&lt;BR /&gt;Where did Var2 get set?</description>
      <pubDate>Mon, 14 Feb 2011 12:26:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273679#M656639</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-02-14T12:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Unespected "%97" as output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273680#M656640</link>
      <description># echo ":$Var2:"&lt;BR /&gt;&lt;BR /&gt;:ABCD%20XY:</description>
      <pubDate>Mon, 14 Feb 2011 13:03:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273680#M656640</guid>
      <dc:creator>gaudiobe</dc:creator>
      <dc:date>2011-02-14T13:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Unespected "%97" as output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273681#M656641</link>
      <description>echo ":$Var2:" &amp;gt;&amp;gt; ${LogFile}&lt;BR /&gt;&lt;BR /&gt;output in LogFile:&lt;BR /&gt;...&lt;BR /&gt;:ABCD%20XY:&lt;BR /&gt;...</description>
      <pubDate>Mon, 14 Feb 2011 13:05:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273681#M656641</guid>
      <dc:creator>gaudiobe</dc:creator>
      <dc:date>2011-02-14T13:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Unespected "%97" as output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273682#M656642</link>
      <description>&amp;gt;:ABCD%20XY:&lt;BR /&gt;&lt;BR /&gt;This bogus %20 is why you get that %97.  So where do you set Var2?  From some web page?</description>
      <pubDate>Mon, 14 Feb 2011 13:26:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273682#M656642</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-02-14T13:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Unespected "%97" as output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273683#M656643</link>
      <description>Var2 was passed to the script as parameter.&lt;BR /&gt;The application launch the following command:&lt;BR /&gt;&lt;BR /&gt;ScriptName.sh "ABCD%20XY"&lt;BR /&gt;&lt;BR /&gt;I used sed to clean the %20.&lt;BR /&gt;&lt;BR /&gt;I checked and %97 is the result of:&lt;BR /&gt;opt/java6/bin/java CriptProgr "%20"&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;BG&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Feb 2011 14:10:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unespected-quot-97-quot-as-output/m-p/5273683#M656643</guid>
      <dc:creator>gaudiobe</dc:creator>
      <dc:date>2011-02-14T14:10:43Z</dc:date>
    </item>
  </channel>
</rss>

