--- parser3/tests/119.html 2003/07/24 11:25:58 1.2 +++ parser3/tests/119.html 2024/05/26 18:04:46 1.4 @@ -1,3 +1,27 @@ -$xdoc[^xdoc::create[вася]] -^xdoc.firstChild.setAttribute[name;значение] -^xdoc.string[] +@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-catch{ + $jCode +} +