|
|
| version 1.1, 2016/08/02 14:56:22 | version 1.8, 2024/09/28 16:54:14 |
|---|---|
| Line 1 | Line 1 |
| Content-Type: text/html | Content-Type: text/html |
| Content-Length: 560 | Content-Length: 1632 |
| f1 : { | f1 : { |
| "class":"file", | |
| "name":"247_utf8_bom.txt", | "name":"247_utf8_bom.txt", |
| "size":19, | "size":19, |
| "mode":"binary", | "mode":"binary", |
| "content-type":"application\/octet-stream", | "content-type":"application\/octet-stream", |
| "adate":"2016-08-02 16:08:28", | |
| "mdate":"2010-08-10 09:35:01", | |
| "cdate":"2016-07-29 22:41:01", | |
| "text":"проверка" | "text":"проверка" |
| } | } |
| f text from binary, automatic transcode by UTF-8 preambule : { | f text from binary, automatic transcode by UTF-8 preambule : { |
| "class":"file", | |
| "name":"247_utf8_bom.txt", | "name":"247_utf8_bom.txt", |
| "size":8, | "size":8, |
| "mode":"text", | "mode":"text", |
| "content-type":"application\/octet-stream", | "content-type":"application\/octet-stream", |
| "adate":"2016-08-02 16:08:28", | |
| "mdate":"2010-08-10 09:35:01", | |
| "cdate":"2016-07-29 22:41:01", | |
| "text":"проверка" | "text":"проверка" |
| } | |
| f text from binary no transcode as charset specified in content-type : { | |
| "name":"247_utf8_bom.txt", | |
| "size":19, | |
| "mode":"text", | |
| "content-type":"text\/plain; charset=Windows-1251", | |
| "text":"проверка" | |
| } | |
| f text from binary no transcode as from-charset specified : { | |
| "name":"247_utf8_bom.txt", | |
| "size":19, | |
| "mode":"text", | |
| "content-type":"application\/octet-stream", | |
| "text":"проверка" | |
| } | |
| f1 : { | |
| "name":"247_utf8.txt", | |
| "size":16, | |
| "mode":"binary", | |
| "content-type":"application\/octet-stream", | |
| "text":"проверка" | |
| } | |
| f text from binary, no transcode : { | |
| "name":"247_utf8.txt", | |
| "size":16, | |
| "mode":"text", | |
| "content-type":"application\/octet-stream", | |
| "text":"проверка" | |
| } | |
| f text from binary transcode using from-charset : { | |
| "name":"247_utf8.txt", | |
| "size":8, | |
| "mode":"text", | |
| "content-type":"application\/octet-stream", | |
| "text":"проверка" | |
| } | |
| Exception type: parser.runtime, | |
| Source: create, | |
| Comment: 'charset' option cannot be used together with 'to-charset' option | |
| code coverage tests: | |
| f1 : { | |
| "name":"247_utf8_bom.txt", | |
| "size":4, | |
| "mode":"text", | |
| "content-type":"application\/octet-stream", | |
| "text":"рове" | |
| } | |
| { | |
| "name":"noname.dat", | |
| "size":4, | |
| "mode":"text", | |
| "content-type":"text\/plain", | |
| "text":"test" | |
| } | } |