how to solve operamini errors

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    i am getting this error : XML Parsing Error: not well-formed

    <?php
    header
    ("Content-type: text/vnd.wap.wml; charset=utf-8");
    header("Pragma: no-cache");
    header("Cache-Control: no-store; no-cache; must-revalidate");
    echo(
    "<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
    echo
    "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
    ?>

    and my files are saved in utf-8 format


    one more thing i added gzip function i added it in one page does it will be added to all the others pages too because when i add that in 1 page my users who use old phones saying that they are getting bad gateway message

    Last edited by bijaybd; 08.11.09, 05:57.

    Comment


      #17
      Here is some code to get the real browser and IP rather than the opera mini browser and the 90.???.?? IP

      Opera Mini | Charlie&#039;s BLOG

      Comment


        #18
        ok i put - header("Content-type: text/vnd.wap.wml; charset=utf-8");
        header("Pragma: no-cache");
        header("Cache-Control: no-store; no-cache; must-revalidate");
        echo("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
        echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
        echo "<wml>";


        even i used :
        $msg=htmlspecialchars(stripslashes(trim($msg)));

        but still nothing works still opera error



        but still facing opera error i am using mozilla then its showing ????? but opera error any way to solve it
        Last edited by bijaybd; 09.11.09, 10:14.

        Comment


          #19
          If all else fails use string replacement like subzero said at start of topic:

          $text = str_replace("¥","y",$text);

          Comment


            #20
            okey i was silly i got the problem and fixed it was bcz of my database
            Last edited by bijaybd; 09.11.09, 14:25.

            Comment

            Working...
            X