I'm echo some text with extended ascii characters as below:
echo -e "Pr\xE9sentation du spectacle" > output
or
echo -e "Pr�sentation du spectacle" > output
If I open the file created I see this text
Pr�sentation du spectacle
The text is shown correctly in this created file when I run the "echo" script independently, but when I run the same script
inside a large script, the extended ascii characters are not printed. My Script looks like this:
The file has the right content. Here you see the third byte has the value "e9" which came from "\xE9" from your echo command. It must be that your terminal (or the application that you used to open the file) settings are different between the one that you can see it and the one you can't.
The hexa print out I show in my previous post, I see it in display.
I'm not sure if od command will produce a readable output showing correctly the extended ascii character or how it works.
Thanks for help so far.
---------- Post updated at 06:06 PM ---------- Previous update was at 05:53 PM ----------
Hi fpmurphy,
What I'm confuse is why if I sent the echo script alone the output with extended ascii characters is correct, but when the
echo script is part of a more large script as in my example, in the output the extended ascii characters are not printed.