<meta http-equiv="Content-Type" content="text/html; charset=utf-8">然后用window的记事本打开程序,另存并选择存为utf-8格式

解决方案 »

  1.   

    符合W3c的页头:<!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" lang="utf-8">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Language" content="utf-8" />
    <meta name="author" content="作者申明" />
    <meta name="Copyright" content="YourUrl" />
    <link rel="icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="shortcut icon" href="http://YourWeb/favicon.ico" type="image/x-icon" /> 
    <title>test</title>
    <link rel="stylesheet" href="../style/style.css" type="text/css" media="all"  />
    </head><body>
    内容.............
    </body>
    </html>
      

  2.   

    你用的什么开发工具?很多开发工具都可以改变编码,比如zend,你在选项设置里面把默认编码改为utf-8,然后重新启动zend,它就会以utf-8的形式加载源代码了。或者你就在<meta>标记里面设置
      

  3.   

    不是这个意思~~~是php的fopen  那个文件流 写入的字符集是utf-8,就好像c的宽字符集 wchar_t那样~~``
      

  4.   

    把变量格式转换后就可以了.转换成utf8然后再写就OK了.
    $str = mb_convert_encoding( $str, "UTF-8", "GBK");
      

  5.   

    用记事本另存 然后也可以选UTF-8编码。
      

  6.   

    :zhouyouben(爱因斯坦) 
    那个方法我知道........问题是网页处理我不可能提交一个我另存一次的嘛~~~呵呵