|
|
try-catch, try-catch-comment used
@main[]
# $request:charset and $response:charset are utf-8
^$request:charset: $request:charset<br />
^$response:charset: $response:charset<br />
# 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]
<hr />
^try-catch{
$jCode
}