Annotation of parser3/tests/247.html, revision 1.2

1.1       misha       1: @main[]
                      2: # checking for UTF-8 auto detection (BOM code)
                      3: ^1251[]
                      4: $response:content-type[
                      5:        $.value[text/html]
                      6:        $.charset[$response:charset]
                      7: ]
                      8: 
                      9: ^load[file in UTF-8 with BOM. charset isn't specified;247_utf8_bom.txt]
                     10: ^load[file in UTF-8 with BOM. UTF-8 charset is specified;247_utf8_bom.txt;UTF-8]
1.2     ! moko       11: ^load[file in UTF-8 with BOM. WINDOWS-1251 charset is specified;247_utf8_bom.txt;WINDOWS-1251]
1.1       misha      12: #^load[247_utf8.txt]
                     13: ^load[file in UTF-8 w/o BOM. UTF-8 charset is specified;247_utf8.txt;UTF-8]
                     14: ^load[file in WINDOWS-1251. WINDOWS-1251 charset is specified;247_windows1251.txt;WINDOWS-1251]
                     15: 
                     16: @load[sTitle;sFile;sCharset][f]
                     17: <h3>$sTitle</h3>
                     18: $f[^file::load[text;$sFile;
                     19:        ^if(def $sCharset){
                     20:                $.charset[$sCharset]
                     21:        }
                     22: ]]
                     23: 
                     24: $f.text<br />

E-mail: