Annotation of parser3/tests/470.html, revision 1.1
1.1 ! moko 1: @main[]
! 2: $f[^file::load[text;470_latin1.txt;$.charset[ISO-8859-1]]]
! 3: ISO-8859-1: $f.text<br />
! 4:
! 5: $f[^file::load[text;470_latin1.txt;$.charset[us-ascii]]]
! 6: US-ASCII: $f.text<br />
! 7:
! 8: $f[^file::load[binary;470_latin1.txt]]
! 9: $f[^file::create[$f; $.mode[text] $.content-type[text/html^; charset=iso-8859-1] ]]
! 10: from binary with charset=iso-8859-1 in content-type: $f.text<br />
! 11:
! 12: $f[^file::load[text;http://www.parser.ru/f/404/not-found;$.any-status(true)]]
! 13: $t[^f.text.match[<title>(.+)</title>]]
! 14: Apache 404 page: $f.status $t.1 [$f.CONTENT-TYPE]<br />
! 15:
! 16: $s[café, naïve, Größe, Кот]
! 17: ^s.save[470_target.txt; $.charset[ISO-8859-1] ]
! 18: $f[^file::load[binary;470_target.txt]]
! 19: saved in ISO-8859-1 [Кот can not be]: $f.size bytes<br />
! 20: $f[^file::load[text;470_target.txt;$.charset[ISO-8859-1]]]
! 21: and loaded back: $f.text<br />
! 22:
! 23: UTF-16 is for the files only: ^try-catch{ $request:charset[UTF-16] }
E-mail: