@main[] # $request:charset and $response:charset are utf-8 ^$request:charset: $request:charset
^$response:charset: $response:charset
# content in utf-8: ok ^do{ $xdoc[^xdoc::create[вася]] ^xdoc.firstChild.setAttribute[name;значение] ^xdoc.string[] } # content in windows-1251: must fail ^do{ $xdoc[^xdoc::create[]] ^xdoc.firstChild.setAttribute[name;] ^xdoc.string[] } @do[jCode]
^try{ $jCode }{ $exception.handled(1) ^$exception.type: '$exception.type'
^$exception.source: '$exception.source'
^$exception.comment: '$exception.comment'
}