File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414
1515function TestSave .test_to_html_encoding ()
1616 local html = xmlua .HTML .parse (" <html><head></head></html>" )
17- luaunit .assertEquals (html :to_html ({encoding = " EUC-JP " }),
17+ luaunit .assertEquals (html :to_html ({encoding = " ISO-8859-1 " }),
1818 [[
1919<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
20- <html><head><meta http-equiv="Content-Type" content="text/html; charset=EUC-JP "></head></html>
20+ <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1 "></head></html>
2121]] )
2222end
2323
3232
3333function TestSave .test_to_xml_encoding ()
3434 local xml = xmlua .XML .parse (" <root/>" )
35- luaunit .assertEquals (xml :to_xml ({encoding = " EUC-JP " }),
35+ luaunit .assertEquals (xml :to_xml ({encoding = " ISO-8859-1 " }),
3636 [[
37- <?xml version="1.0" encoding="EUC-JP "?>
37+ <?xml version="1.0" encoding="ISO-8859-1 "?>
3838<root/>
3939]] )
4040end
You can’t perform that action at this time.
0 commit comments