Source
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"\x00'
---
test case Empty but with header
in
encoding'text/html; charset=ISO-8859-1'
buffer&buffer
'\x00'
out
expected_result_buffer*buffer
encoding'ISO-8859-1'
return SUCCEED
---
test case ISO-8859-1
in
encoding'text/html; charset=ISO-8859-1'
buffer&buffer
'\xA1\xB1\xC1\xD1\xE1\xF1\xFF\x00'
out
expected_result_buffer
"¡±ÁÑáñÿ\x00"
encoding'ISO-8859-1'
return SUCCEED
---
test case ISO-8859-1 without ;
in
encoding'text/html charset=ISO-8859-1'
buffer&buffer
'\xA1\xB1\xC1\xD1\xE1\xF1\xFF\x00'
out
expected_result_buffer
'¡±ÁÑáñÿ\x00'
encoding'WINDOWS-1252'
return SUCCEED
---
test case ISO-8859-1 charset with spaces
in
encoding' text/html ; charset = ISO-8859-1 '
buffer&buffer
'\xA1\xB1\xC1\xD1\xE1\xF1\xFF\x00'
out
expected_result_buffer
'¡±ÁÑáñÿ\x00'
encoding'ISO-8859-1'
return SUCCEED
---
test case ISO-8859-1 charset empty
in
encoding'text/html;'
buffer&buffer
'\xA1\xB1\xC1\xD1\xE1\xF1\xFF\x00'
out
expected_result_buffer
'¡±ÁÑáñÿ\x00'
encoding'WINDOWS-1252'
return SUCCEED
---
test case ISO-8859-1 charset special symbol
in
encoding'text/html;=ISO-8859-1'
buffer&buffer
'\xA1\xB1\xC1\xD1\xE1\xF1\xFF\x00'
out
expected_result_buffer
'¡±ÁÑáñÿ\x00'