This would be the equivalent to the Perl code, what you see is largely dependent how you platform/terminal is configured. The above I did on a MacOS X PowerBook. I guess you did your example on MS-Windows with code page 859 with displayable characters in upper-ASCII.