Topic on Project:Support desk

Problem in html2wiki

5
108.171.128.166 (talkcontribs)

When I try to import through the tool html2wiki html file the system show me the error formatting incorret. I checked file and it's right a single "hello world" is impossible to import . What is the solution?

This post was posted by 108.171.128.166, but signed as 70.39.231.100.

Ciencia Al Poder (talkcontribs)

Are you talking about Extension:Html2Wiki?

"Hello World" is not valid HTML, so I guess the error is coherent and expected.

Be..anyone (talkcontribs)

Maybe <title> Hello </title> world works, IIRC that used to be valid HTML2 or valid HTML i18n (last IETF HTML RFC before the W3C took over.)

108.171.128.166 (talkcontribs)

Right, I talking about Extension:Html2Wiki. When I spoke about "hello world" I did not mean a single sentence html code with only that as a title. Example

<!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML>
   <HEAD>
      <TITLE>
         A Small Hello 
      </TITLE>
   </HEAD>
<BODY>
   <H1>Hi</H1>
   <P>This is very minimal "hello world" HTML document.</P> 
</BODY>
</HTML>

This simple code is not imported by that extension. error message, invalid format.

Thanks for your help

Be..anyone (talkcontribs)

I've added <pre> for your snippet, copied it, pasted it into the validator, and got valid. However, a MediaWiki extension created twenty years after HTML2 is entitled to be lost with this DTD, older than Wilbur (HTML 3.2) was very old fifteen years ago, and meanwhile HTML 4.01 transitional or XHTML 1.0 transitional could be a sound baseline.

If the version isn't the problem it might be the missing charset:

<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
Reply to "Problem in html2wiki"