@main[]
# ISO-8859-1 as the source charset: letters, case, spaces, xdoc
$request:charset[ISO-8859-1]
$response:charset[UTF-8]
$s[Café À la crème: 2×3÷4, Straße, ÿ]
upper: ^s.upper[]
lower: ^s.lower[]
words [× and ÷ are not letters]: ^s.match[(\w+)][g]{[$match.1]}
$s[a b c]
no-break space is a space: ^s.match[\s][g]{_}
$x[^xdoc::create{naïve К^;}]
xdoc text [U+041A is not in ISO-8859-1]: $x.documentElement.firstChild.nodeValue
xdoc attribute: ^x.documentElement.getAttribute[b]
^x.string[]