We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20984
    • 1 Posts
    Greetings,

    In our template, we have a snippet call
    [!summaryText? &dutch_sum=`[*dutch_summary*]` &french_sum=`[*fr_summary*]`!]

    in our template, which basically creates 2 divs for the french and dutch summaries of the text entered. In the french summary part, french characters sent into the snippetin this way are causing problems.

    The code for the snippet is below:
    --------------
    <?php
    (isset($dutch_sum)) ? $dutch_sum: $dutch_sum= "";
    (isset($french_sum)) ? $french_sum: $french_sum= "";
    ?>

    <?

    $html="<div id=sd style=padding-bottom:10px>";
    $html.="<a id=v_slidein_dt href=\"javascript:show(’dt’);\"><div id=summary>Dutch Summary</div></a>";
    $html.="<div id=vertical_slide_dt style=display:none>";
    $html.=$dutch_sum;
    $html.="</div></div>";

    $resD=strlen($dutch_sum);
    $resF=strlen($french_sum);


    if($resD>3)
    {
    echo $html;
    }

    $html2="<a id=v_slidein_fr href=\"javascript:show(’fr’);\"><div id=summary>French Summary</div></a>";
    $html2.="<div id=vertical_slide_fr style=display:none>";
    $html2.=$french_sum;
    $html2.="</div>";

    if($resF>3)
    {
    echo $html2;
    }
    ?>
    -----------------


    The website uses UTF-8 encoding, and the text which should appear as France "KLM a été lancée le 1er" appears only up to the point "KLM a ".

    The template variable french_summary is richtext FYI, and prints out correctly if used directly within the template, but when the TV is sent to a snippet, somethings get lost in the way. Is there a work around to this problem?

    krgds,
    Nat