@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]