Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration. #13

Open
buntekuh55 opened this issue Apr 19, 2018 · 0 comments

Comments

@buntekuh55
Copy link

buntekuh55 commented Apr 19, 2018

when parsing a website with such a content

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="de" lang="de" xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- 
	This website is powered by TYPO3 - inspiring people to share!
	TYPO3 is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.
	TYPO3 is copyright 1998-2016 of Kasper Skaarhoj. Extensions are copyright of their respective owners.
	Information and contribution at http://typo3.org/
-->

<title>Test</title>
<meta name="generator" content="TYPO3 CMS" />
<meta name="robots" content="index,follow" />
<meta name="copyright" content="Test" />
<meta name="revisit-after" content="7 days" />
<meta name="title" content="Test" />
<meta name="date" content="2018-03-29" />

</head>
<body class="layout0 language2 type0 pid8860 parentPid8852 ">

Test


</body>
</html>

a warning is thrown
Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration.

Are there any workarounds with MWC?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant