|
|
| version 1.10, 2004/02/25 13:40:23 | version 1.25, 2004/03/02 16:55:28 |
|---|---|
| Line 1 | Line 1 |
| @main[] | $request:charset[windows-1251] |
| $request:charset[UTF-8] | |
| #$response:charset[UTF-8] | |
| $response:charset[windows-1251] | $response:charset[windows-1251] |
| $response:content-type[$.value[text/html]$.charset[$response:charset]] | |
| $xdoc[^xdoc::create{<?xml version="1.0" encoding="$request:charset"?> | |
| <doc attribute="a | |
| b"> | |
| исходный | |
| </doc> | |
| }] | |
| $xdoc[^xdoc.transform[_bug.xsl]] | |
| ^xdoc.string[] | |
| #^xdoc.save[_bug-koi.xml;$.encoding[koi8-r]] | |
| #^xdoc.save[_bug-in-request-charset.xml] | |
| <hr> | |
| $request:charset/$response:charset | |
| ^nothing.left(10) | |
| ^nothing.right(10) | |
| ^nothing.mid(1;10) |