Operating System - HP-UX
1753444 Members
4642 Online
108794 Solutions
New Discussion юеВ

Re: Unespected "%97" as output

 
SOLVED
Go to solution
Dennis Handly
Acclaimed Contributor
Solution

Re: Unespected "%97" as output

>If I look the output in ${LogFile}: CodeTest=asdf%20oe

I assume you just used more or cat on ${LogFile}?

It seems you have %20 in Var2. What does this show:
echo ":$Var2:"

Where did Var2 get set?
gaudiobe
Advisor

Re: Unespected "%97" as output

# echo ":$Var2:"

:ABCD%20XY:
gaudiobe
Advisor

Re: Unespected "%97" as output

echo ":$Var2:" >> ${LogFile}

output in LogFile:
...
:ABCD%20XY:
...
Dennis Handly
Acclaimed Contributor

Re: Unespected "%97" as output

>:ABCD%20XY:

This bogus %20 is why you get that %97. So where do you set Var2? From some web page?
gaudiobe
Advisor

Re: Unespected "%97" as output

Var2 was passed to the script as parameter.
The application launch the following command:

ScriptName.sh "ABCD%20XY"

I used sed to clean the %20.

I checked and %97 is the result of:
opt/java6/bin/java CriptProgr "%20"

regards
BG