The LEXICAL ORDER IS statement also determines upper/lowercase conversions in addition to ordering rules. Rules for the built-in languages are given in the table below. Note that Ÿ (uppercase Y umlaut) does not exist in codepage 437, 850 or the Latin-1 character sets. In these cases, Y is used for UPC$("ÿ").
You may define rules for other languages using "LEXICAL ORDER IS Array(*)", which has been enhanced to allow case conversion rules to be stored in the array along with order rules. HP BASIC does not support these enhancements but does not return an error if they are present. These enhancements are explained later under "User-Defined UPC$/LWC$ Rules".
In Japanese mode, uppercase and lowercase conversion is limited to ASCII characters; Japanese characters are not converted.