Vertical bar character
peter at ursus.demon.co.uk
Fri Dec 5 10:27:02 GMT 1997
I am building a module to parse DTD content models and have a strange (to
me) problem on java DOS with the vertical bar character in the command
line. I am using W95, JDK1.02 and the DOS prompt window.
java jumbo.sgml.ContentChunk (A|B)
using the 'vertical bar' character on my keyboard (the 'or' symbol in Java/C).
I assume this has decimal value 124 (from 'man ascii').
Under jview, this character is created with a value of 166.
Under java it is created with a value of -90
If I quote the argument under java (i.e. "(A|B)" ), I get a value of 65446
[corresponds to 2^16 - 90]
A - is this symptomatic of a general problem (e.g. something in Unicode).
B - how can I 'quote' a '|' symbol in the DOS commandline?
There is also a character 214 whose glyph seems to be a vertical bar with a
break in it. I assume this is unrelated to the problem (even though it is
what my keyboards display :-)
Peter Murray-Rust, Director Virtual School of Molecular Sciences, domestic
VSMS http://www.nottingham.ac.uk/vsms, Virtual Hyperglossary
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
More information about the Xml-dev