Topic: encoding : "é" become "?" ...

Hi !

Lo I used PunBB Migration Tool on my forum phpbb --> punBB and after this operation my new forum punBB works well BUT now all words "é" (french) have been remplaced by "?" so it's a encoding error ... sad

How do I do for dispose of this problem please ?

Thank you for your help.

Re: encoding : "é" become "?" ...

Moved to Troubleshooting

Re: encoding : "é" become "?" ...

It may be a charset issue. What's the charset defined from the begining to the end, and at every step in the way?

Re: encoding : "é" become "?" ...

Hi Jérémie !

I don't understand your last note ... you are french so you can explain in french please ? (I'm french too)

Re: encoding : "é" become "?" ...

Could we see a link to your forum?

Re: encoding : "é" become "?" ...

I work only on easyphp but I can show you a screen if you want ?

Re: encoding : "é" become "?" ...

Could you paste a copy of the HTML output of a page that exhibits this behavior?

Re: encoding : "é" become "?" ...

Hi Smartys,

You can see that there are only posts where there are "?" (é,à,ç,ê etc... = ?)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Forum / hebergeur</title>
<link rel="stylesheet" type="text/css" href="style/Oxygen.css" />
<script type="text/javascript">
<!--
function process_form(the_form)
{
    var element_names = new Object()
    element_names["req_message"] = "Message"

    if (document.all || document.getElementById)
    {
        for (i = 0; i < the_form.length; ++i)
        {
            var elem = the_form.elements[i]
            if (elem.name && elem.name.substring(0, 4) == "req_")
            {
                if (elem.type && (elem.type=="text" || elem.type=="textarea" || elem.type=="password" || elem.type=="file") && elem.value=='')
                {
                    alert("\"" + element_names[elem.name] + "\" est un champ requis pour ce formulaire.")
                    elem.focus()
                    return false
                }
            }
        }
    }

    return true
}
// -->
</script>
</head>
<body>

<div id="punwrap">
<div id="punviewtopic" class="pun">

<div id="brdheader" class="block">

    <div class="box">
        <div id="brdtitle" class="inbox">
            <h1><span>Forum</span></h1>
            <p><span>Forum punBB</span></p>
        </div>
        <div id="brdmenu" class="inbox">
            <ul>
                <li id="navindex"><a href="index.php">Accueil forums</a></li>

                <li id="navuserlist"><a href="userlist.php">Liste des membres</a></li>
                <li id="navsearch"><a href="search.php">Recherche</a></li>
                <li id="navprofile"><a href="profile.php?id=2">Profil</a></li>
                <li id="navadmin"><a href="admin_index.php">Administration</a></li>
                <li id="navlogout"><a href="login.php?action=out&id=2">Déconnexion</a></li>
            </ul>

        </div>
        <div id="brdwelcome" class="inbox">
            <ul class="conl">
                <li>Connecté en tant que <strong>Avalon</strong></li>
                <li>Dernière visite: 08-09-2006 14:17:42</li>
            </ul>
            <div class="clearer"></div>

        </div>
    </div>
</div>



<div class="linkst">
    <div class="inbox">
        <p class="pagelink conl">Pages: <strong>1</strong></p>
        <p class="postlink conr"><a href="post.php?tid=154">Écrire une réponse</a></p>

        <ul><li><a href="index.php">Accueil forums</a></li><li> » <a href="viewforum.php?id=1">Le bar</a></li><li> » hebergeur</li></ul>
        <div class="clearer"></div>
    </div>
</div>

<div id="p605" class="blockpost rowodd firstpost">
    <h2><span><span class="conr">#1 </span><a href="viewtopic.php?pid=605#p605">29-07-2004 21:31:43</a></span></h2>
    <div class="box">

        <div class="inbox">
            <div class="postleft">
                <dl>
                    <dt><strong><a href="profile.php?id=2">Avalon</a></strong></dt>
                    <dd class="usertitle"><strong>Membre</strong></dd>
                    <dd class="postavatar"></dd>
                    <dd>Lieu: France</dd>

                    <dd>Date d'inscription: 22-04-2005</dd>
                    <dd>Messages: 92</dd>
                    <dd>IP: <a href="moderate.php?get_host=605">IP</a></dd>
                    <dd class="usercontacts"><a href="mailto:mail@gmail.com">Courriel</a></dd>
                </dl>
            </div>

            <div class="postright">
                <h3>hebergeur</h3>
                <div class="postmsg">
                    <p>Il n'a pas forc?ment envie de cr?er un site ou m?me ne dispose pas d'un h?bergeur pour stocker les images, alors pour ?a l?.</p>
                </div>
            </div>
            <div class="clearer"></div>
            <div class="postfootleft"><p><strong>En ligne</strong></p></div>

            <div class="postfootright"><ul><li class="postreport"><a href="misc.php?report=605">Signaler</a> | </li><li class="postdelete"><a href="delete.php?id=605">Supprimer</a> | </li><li class="postedit"><a href="edit.php?id=605">Modifier</a> | </li><li class="postquote"><a href="post.php?tid=154&qid=605">Citer</a></li></ul></div>
        </div>
    </div>
</div>

<div class="postlinksb">
    <div class="inbox">
        <p class="postlink conr"><a href="post.php?tid=154">Écrire une réponse</a></p>
        <p class="pagelink conl">Pages: <strong>1</strong></p>
        <ul><li><a href="index.php">Accueil forums</a></li><li> » <a href="viewforum.php?id=1">Le bar</a></li><li> » hebergeur</li></ul>
        <p class="subscribelink clearb"><a href="misc.php?subscribe=154">S'abonner à cette discussion</a></p>

    </div>
</div>

<div class="blockform">
    <h2><span>Réponse rapide</span></h2>
    <div class="box">
        <form method="post" action="post.php?tid=154" onsubmit="this.submit.disabled=true;if(process_form(this)){return true;}else{this.submit.disabled=false;return false;}">
            <div class="inform">
                <fieldset>
                    <legend>Veuillez écrire votre message et l'envoyer</legend>

                    <div class="infldset txtarea">
                        <input type="hidden" name="form_sent" value="1" />
                        <input type="hidden" name="form_user" value="brend" />
                        <label><textarea name="req_message" rows="7" cols="75" tabindex="1"></textarea></label>
                        <ul class="bblinks">
                            <li><a href="help.php#bbcode" onclick="window.open(this.href); return false;">BBCode</a>: actif</li>
                            <li><a href="help.php#img" onclick="window.open(this.href); return false;">Balise [img]</a>: actif</li>

                            <li><a href="help.php#smilies" onclick="window.open(this.href); return false;">Émoticônes</a>: actif</li>
                        </ul>
                    </div>
                </fieldset>
            </div>
            <p><input type="submit" name="submit" tabindex="2" value="Envoyer" accesskey="s" /></p>
        </form>
    </div>

</div>

<div id="brdfooter" class="block">
    <h2><span>Pied de page des forums</span></h2>
    <div class="box">
        <div class="inbox">

            <div class="conl">
                <form id="qjump" method="get" action="viewforum.php">
                    <div><label>Aller à
                    <br /><select name="id" onchange="window.location=('viewforum.php?id='+this.options[this.selectedIndex].value)">

                        <optgroup label="Index g?n?ral">
                            <option value="6">Autres</option>
                            <option value="1" selected="selected">Web</option>
                            <option value="2">Graphisme</option>

                    </optgroup>
                    </select>
                    <input type="submit" value=" Aller " accesskey="g" />
                    </label></div>
                </form>
            <dl id="modcontrols"><dt><strong>Modération</strong></dt><dd><a href="moderate.php?fid=1&tid=154&p=1">Supprimer plusieurs messages</a></dd>
            <dd><a href="moderate.php?fid=1&move_topics=154">Déplacer la discussion</a></dd>

            <dd><a href="moderate.php?fid=1&close=154">Fermer la discussion</a></dd>
            <dd><a href="moderate.php?fid=1&stick=154">Épingler la discussion</a></dd></dl>
            </div>
          <p class="conr">Propulsé par <a href="http://punbb.org/">PunBB</a><br />© Copyright 2002?2005 Rickard Andersson<br /> Traduction par <a href="http://www.punbb.fr/">punbb.fr</a></p>

            <div class="clearer"></div>
        </div>
    </div>
</div>

</div>
</div>

</body>
</html>

Re: encoding : "é" become "?" ...

Mmm, I can't really tell what the problem is from that (since what you're sending me ends up as question marks as opposed to imporperly encoded characters)

10

Re: encoding : "é" become "?" ...

Hi Smartys,

I managed to resolve my problem, I tested the same operation with my real host on internet and now it works perfectly ! smile
The problem comes from Easyphp apparently.

Thanks for your help and Merry Christmas wink