I was reading this question(How to get Unicode characters into HTML output) and because his intent is simply to ouput the text to HTML, I was wondering if there is a command that simple does binary dump of the containing content? I could see this being useful in maybe embedding certain types of graphics and specifically utf-8 text in the question above.
I want the following latex.
\documentclass{article}
\begin{document}
\specialCommand{any unicode Character 字}
\end{document}
SpecialCommand is optional but I thought make it easier. To result in(the html has been simplified)
<?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 xmlns="http://www.w3.org/1999/xhtml" >
<head><title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="html.css" />
</head><body>
<p class="noindent" >any unicode Character 字
</p>
</body></html>
Using htlatex "html.tex" "xhtml, charset=utf-8" " -cunihtf -utf8".

\typeout, or something different? – Davislor Aug 11 '18 at 05:08\typeout(and perhaps remove\detokenizedepending on the options you are using with htlatex – David Carlisle Aug 11 '18 at 13:57htlatex, it just cannot do this.make4ht -ul html.texwill compile your example correctly. – michal.h21 Aug 11 '18 at 15:20