解决方案 »

  1.   

    <!DOCTYPE html>
    <html>
      <head>
        <title>MyHtml.html</title>

        <meta name="keywords" content="keyword1,keyword2,keyword3">
        <meta name="description" content="this is my page">
        
      <!--  编码方式-->  
        <meta name="content-type" content="text/html; charset=UTF-8">
        
        <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->  </head>
      
      <body >
       <label>html5乱码测试</label>
        <form name="f1" id="f1" action="" method="post">
          <table>
            <tr>
              <td>你好:</td>
              <td><input type="text" name="login" id="login"></td>
            </tr>
            <tr>
              <td>密码:</td>
              <td><input type="password" name="password" id="password"></td>
            </tr> 
            <tr>
              <td colspan="2"><input type="submit"></td>
            </tr>
          </table>
        </form>
      </body>
    </html>
    一点问题没有 加了编码方式没有
      

  2.   

    <!DOCTYPE html>
    <html>
    <head>
    <title>MyHtml.html</title><meta name="keywords" content="keyword1,keyword2,keyword3">
    <meta name="description" content="this is my page"><!--  编码方式-->
    <meta charset="utf-8">
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">--></head><body>
    <label>html5乱码测试</label>
    <form name="f1" id="f1" action="" method="post">
    <table>
    <tr>
    <td>你好:</td>
    <td><input type="text" name="login" id="login"></td>
    </tr>
    <tr>
    <td>密码:</td>
    <td><input type="password" name="password" id="password"></td>
    </tr>
    <tr>
    <td colspan="2"><input type="submit"></td>
    </tr>
    </table>
    </form>
    </body>
    </html>
      

  3.   

    由于myeclipse的模板配置有误导致的
      

  4.   

    的确  之前是<meta name="content-type" content="text/html; charset=UTF-8">
    改成 <meta charset="utf-8"> 就行了
    那myeclipse的模板应该怎么配置呢?