Richard Bytheway wrote: > I was having a fiddle with keyboard.xml to support a UK keyboard, > and discovered that the characters £ and ¬ (which are shift-3 and > shift-<key to left of 1>) break the XML parser. Is this intentional? > > Also, in the grand re-organisation of the XML files that appears to be > planned, do we need to consider a better way to handle non-US keyboard > layouts? UK is not too different, only the punctuation is rearranged, > but other european layouts move the letters around as well.
It's not the location of the keys, but their encoding values. In this case, the pounds sterling symbol (which I cannot easily type) has an ISO-8859-1 value of 163, while the "#" symbol, which US keyboards have in that position (and which, confusingly, is also often called a pound sign) is represented by 35. The core point is that XML is encoded, by default, in unicode's UTF-8. UTF-8 has the nice property that ASCII values less than 128 encode as themselves. But higher values, including the ISO-8859-1 symbols you want to type, do not. The XML parser will break if you hand it an ISO-8859-1 document. Now, the XML standard allows for specifying the document encoding in the header. I don't know if ours does or not, but it's probably worth investigating. Andy -- Andrew J. Ross NextBus Information Systems Senior Software Engineer Emeryville, CA [EMAIL PROTECTED] http://www.nextbus.com "Men go crazy in conflagrations. They only get better one by one." - Sting (misquoted) _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel