Nouvelle version BETA du plugin WebInterface (3 Viewers)

L

LordMessi

Guest
Originally posted by mazou@22 Sep 2005, 16:21
If I change the source this  élément :
Code:
echo("<h3>".lang(88)."</h3>".lang(89)." <a href=\"control.php?ActionID=-1\">".lang(108)."</a>");
With
Code:
echo("<h3>".htmlentities(lang(88))."</h3>".lang(89)." <a href=\"control.php?ActionID=-1\">".lang(108)."</a>");
The text ik ok.
I think it's possible to modify the function lang() for all the text.

But i don't see for the parser xml.
<div align="right"><{POST_SNAPBACK}></div>

This is true...looks like this could do the trick....
<


I'll look into it somemore.
 

mazou

Portal Pro
October 19, 2005
1,008
0
48
Brest
Home Country
France France
I have search to change all the variable with utf8_decode(), but it's wery difficult. So i have change iso-8859-1 to UTF-8 in the french.php file. And now all the caracteres are ok.
 

mazou

Portal Pro
October 19, 2005
1,008
0
48
Brest
Home Country
France France
No it's not ok with UTF-8 !
Or then for the tv guide.

The another text (with lang()) are not decoded.
I think for the lang fonction the more simple is with htmlentities(), and for the tvguide utf8_decode().

But the more functions should be modified .
 

mazou

Portal Pro
October 19, 2005
1,008
0
48
Brest
Home Country
France France
<

I have one solution.

1 / Change $ lang_charset to UDF-8 in the language file
2 / Change rin the lang function :
Code:
    if (isset ($str[$stringid]))
  {
  if($debug_mode)
      return $str[$stringid] ."(".$stringid.")";
  else
      return $str[$stringid];
  }
to
Code:
if (isset ($str[$stringid]))
  {
  if($debug_mode)
      return htmlentities($str[$stringid] ."(".$stringid.")");
  else
      return htmlentities($str[$stringid]);
  }

It's work now finely
<
 

carreno

Moderateur
  • Premium Supporter
  • July 31, 2005
    251
    25
    37
    France
    Home Country
    France France
    Une explication de la mise en place du webinterface dans le wiki ne serait pas du luxe, car je galére sur certain point.

    <
     

    Users who are viewing this thread

    Top Bottom