James Lampert wrote:
Christopher Schultz wrote:
This is what I get from my own web.xml:
0000000 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31
< ? x m l sp v e r s i o n = " 1
0000020 2e 30 22 20 65 6e 63 6f 64 69 6e 67 3d 22 49 53
. 0 " sp e n c o d i n g = " I S
0000040 4f 2d 38 38 35 39 2d 31 22 3f 3e 0a
O - 8 8 5 9 - 1 " ? > nl
0000054
Well THAT's weird:
Aside from the file's pathname having one directory level you didn't
mention (WEB-INF), . . .
The CCSID on the file says 819 ("ISO 8859-1: Latin Alphabet Number 1").
If do a "head" on the file, without piping it into "od," I get the
expected text.
If I download it to a WinDoze box via FTP, in binary mode, and open it
in Hex Editor, everything matches.
But if I pipe a "head" into an "od" as you described, the hex values
come up as if the file were EBCDIC.
I'm not saying that this is the issue here, but when you are dealing with different
character sets (or alphabets or encodings etc.) you have to be very careful about what I
call the "Babel effect". You may have a result which is really in one character
set/encoding, but the intermediate layer of display to your console (or the editor program
you are using) may be translating it to something else, just to confuse you.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org