PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile (précédentes versions) → Problème avec HTMLVERSTEXTE
Problème avec HTMLVERSTEXTE
Débuté par Ézéchias, 24 aoû. 2017 12:40 - Aucune réponse
Membre enregistré
24 messages
Popularité : +0 (2 votes)
Posté le 24 août 2017 - 12:40
Bonjour chers collègues developpeurs,
J'ai besoin de votre aide par rapport à la fonction qui permet de recupérer les chaines de caractère d'une page php.
Il s'agit de la fonction HTMLVERSTEXTE.
Lorsque j'utilise la fonction htmlverstexte, durant le test sur l'équipement android, les résultats ne sont pas les mêmes pour chaque test avec le même contenu HTML renvoyé par la fonction httpdonneresultat:

Info(HTMLVersTexte(HTTPDonneRésultat(httpRésultat)))


donne celui qui à l'écran





J'ai récupérer le même code pour le tester directement :

Info(HTMLVersTexte([
<!DOCTYPE html>
<html lang="en-us" class="no-js htmlstd html5">
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title><meta name="generator" content="WEBDEV">
<meta name="Description" lang="en-us" content="">
<meta name="keywords" lang="en-us" content="">
<link rel="shortcut icon" type="image/x-icon" href="res/icon_app_9EE92D6B_.png">
<style type="text/css">.wblien,.wblienHorsZTR {border:0;background:transparent;padding:0;text-align:center;box-shadow:none; color:#6E7D87;}.wblienHorsZTR {border:0 !important;background:transparent !important;outline-width:0 !important;} :not(.wblienHorsZTR[class^=l-]) {box-shadow: none !important;}a:Active{}a:visited{}*::-moz-selection{Color:#FFFFFF;Background-Color:#000080;}::selection{Color:#FFFFFF;Background-Color:#000080;}</style><Link rel="stylesheet" type="text/css" href="res/standard.css?3cdc083e">
<Link rel="stylesheet" type="text/css" href="res/static.css?e7222bde">
<Link rel="stylesheet" type="text/css" href="PAGE_login_user_style.css?c55fb521">
<Link rel="stylesheet" type="text/css" href="Evolution190EvolutionGrayVolution.css?b66a9f89">
<Link rel="stylesheet" type="text/css" href="Contractor_ControlPanel190EvolutionGrayVolution.css?e3d4fceb">
<Link rel="stylesheet" type="text/css" href="palette-Contractor_ControlPanel.css?a3b28db5">
<Link rel="stylesheet" type="text/css" href="palette-GrayVolution.css?5b99002f">
<style type="text/css">
body{Line-height:Normal;width:100%;margin:0 auto;width:100%;height:600px;Position:relative; Color:#333333;}html,body { Background-Color:#E5E5E5;}#page{Position:relative; Background-Color:#F3F3F3;Min-height:600px;height:auto !important;height:600px;Min-width:980px;width:auto !important;width:980px;}.l-0{text-align:Right;}.l-1{font-family:Tahoma, Geneva, sans-serif;font-size:9pt;Color:#333333;Line-height:1.400000;}.htmlstd .l-1.wbgrise{Color:#808080;}
#b-A1{Border-style:solid;Border-width:1px;Border-Color:#D3D3D3;Border-collapse:collapse;empty-cells:show;Border-spacing:0;}#ctzA1{Border-style:solid;Border-width:1px;Border-Color:#D3D3D3;Border-collapse:collapse;empty-cells:show;Border-spacing:0;}#ttA2,.ttA2,#ttA3,.ttA3,#ttA4,.ttA4,#ttA5,.ttA5,#ttA6,.ttA6,#ttA7,.ttA7,#ttA8,.ttA8,#ttA9,.ttA9,#ttA10,.ttA10,#ttA11,.ttA11,#ttA12,.ttA12,#ttA13,.ttA13,#ttA14,.ttA14,#ttA15,.ttA15,#ttA16,.ttA16,#ttA17,.ttA17,#ttA18,.ttA18,#ttA19,.ttA19,#ttA20,.ttA20,#ttA21,.ttA21{Border-top:none;Border-Right:solid 1px #D3D3D3;Border-bottom:solid 1px #D3D3D3;Border-Left:none;Border-collapse:collapse;empty-cells:show;Border-spacing:0;}.communbc-A2{Border-top:none;Border-Right:solid 1px #D3D3D3;Border-bottom:none;Border-Left:none;Border-collapse:collapse;empty-cells:show;Border-spacing:0;}.wbcolA2{width:298px;}.communbc-A3{Border-top:none;Border-Right:solid 1px #D3D3D3;Border-bottom:none;Border-Left:none;Border-collapse:collapse;empty-cells:show;Border-spacing:0
;}.wbcolA3{width:98px;}.communbc-A4{Border-top:none;Border-Right:solid 1px #D3D3D3;Border-bottom:none;Border-Left:none;Border-collapse:collapse;empty-cells:show;Border-spacing:0;}.wbcolA4{width:98px;}.communbc-A5{Border-top:none;Border-Right:solid 1px #D3D3D3;Border-bottom:none;Border-Left:none;Border-collapse:collapse;empty-cells:show;Border-spacing:0;}.wbcolA5{width:194px;}.communbc-A6{Border-top:none;Border-Right:solid 1px #D3D3D3;Border-bottom:none;Border-Left:none;Border-collapse:collapse;empty-cells:show;Border-spacing:0;}.wbcolA6{width:98px;}.communbc-A7{Border-top:none;Border-Right:solid 1px #D3D3D3;Border-bottom:none;Border-Left:none;Border-collapse:collapse;empty-cells:show;Border-spacing:0;}.wbcolA7{width:98px;}.communbc-A8{Border-top:none;Border-Right:solid 1px #D3D3D3;Border-bottom:none;Border-Left:none;Border-collapse:collapse;empty-cells:show;Border-spacing:0;}.wbcolA8{width:104px;}.communbc-A9{Border-top:none;Border-Right:solid 1px #D3D3D3;Border-bottom:none;Border-lef
t:none;Border-collapse:collapse;empty-cells:show;Border-spacing:0;}.wbcolA9{width:98px;}.communbc-A10{Border-top:none;Border-Right:solid 1px #D3D3D3;Border-bottom:none;Border-Left:none;Border-collapse:collapse;empty-cells:show;Border-spacing:0;}.wbcolA10{width:98px;}.communbc-A11{Border-top:none;Border-Right:solid 1px #D3D3D3;Border-bottom:none;Border-Left:none;Border-collapse:collapse;empty-cells:show;Border-spacing:0;}.wbcolA11{width:472px;}.communbc-A12{Border-top:none;Border-Right:solid 1px #D3D3D3;Border-bottom:none;Border-Left:none;Border-collapse:collapse;empty-cells:show;Border-spacing:0;}.wbcolA12{width:98px;}.communbc-A13{Border-top:none;Border-Right:solid 1px #D3D3D3;Border-bottom:none;Border-Left:none;Border-collapse:collapse;empty-cells:show;Border-spacing:0;}.wbcolA13{width:472px;}.communbc-A14{Border-top:none;Border-Right:solid 1px #D3D3D3;Border-bottom:none;Border-Left:none;Border-collapse:collapse;empty-cells:show;Border-spacing:0;}.wbcolA14{width:98px;}.communbc-A15{
Border-top:none;Border-Right:solid 1px #D3D3D3;Border-bottom:none;Border-Left:none;Border-collapse:collapse;empty-cells:show;Border-spacing:0;}.wbcolA15{width:98px;}.communbc-A16{Border-top:none;Border-Right:solid 1px #D3D3D3;Border-bottom:none;Border-Left:none;Border-collapse:collapse;empty-cells:show;Border-spacing:0;}.wbcolA16{width:98px;}.communbc-A17{Border-top:none;Border-Right:solid 1px #D3D3D3;Border-bottom:none;Border-Left:none;Border-collapse:collapse;empty-cells:show;Border-spacing:0;}.wbcolA17{width:23px;}.communbc-A18{Border-top:none;Border-Right:solid 1px #D3D3D3;Border-bottom:none;Border-Left:none;Border-collapse:collapse;empty-cells:show;Border-spacing:0;}.wbcolA18{width:98px;}.communbc-A19{Border-top:none;Border-Right:solid 1px #D3D3D3;Border-bottom:none;Border-Left:none;Border-collapse:collapse;empty-cells:show;Border-spacing:0;}.wbcolA19{width:98px;}.communbc-A20{Border-top:none;Border-Right:solid 1px #D3D3D3;Border-bottom:none;Border-Left:none;Border-collapse:colla
pse;empty-cells:show;Border-spacing:0;}.wbcolA20{width:98px;}.wbcolA21{width:98px;}.wbplanche{Background-repeat:repeat;Background-Position:0% 0%;Background-attachment:scroll;Background-size:auto auto;Background-origin:padding-box;}.wbplancheLibInc{_font-size:1px;}</style><script src="res/modernizr-2.5.3.js"></script></head><body onload=" "><form name="PAGE_LOGIN_USER" action="PAGE-login-user.php?PHPSESSID=cn9vcjo1p5mrceb3046cnhkh82" target="_self" method="post" class="ancragecenter"><div class="h-0"><Input type="hidden" name="WD_BUTTON_CLICK_" value=""><Input type="hidden" name="WD_ACTION_" value=""></div><table style="height:100%;width:980px"><tr style="height:100%"><td><div id="page" class="clearfix pos1"><table style="position:relative;width:100%;height:100%;margin-bottom:-3px"><tr style="height:100%"><td><div class="pos2"><div class="pos3"></div></div></td></tr><tr style="height:1px"><td><div id="dwwA1" style="position:absolute;left:3px;top:53px;width:2950px;height:100px;z-inde
x:0;"><Input type=hidden name="A1" value="1"><Input type=hidden name="A1_DEB" value="1"><Input type=hidden name="_A1_OCC" value="3"><table id="ctzA1" style="border-spacing:0; width:2950px;" class="cellpadding0">
<tr style="border:0" class="ColTitle padding" id="ttA1"><td id="ttA2" style="height:24px;" class="ColTitle padding">Identifiant de tbl_user</td>
<td id="ttA3" style="height:24px;" class="ColTitle padding">First name</td>
<td id="ttA4" style="height:24px;" class="ColTitle padding">Last name</td>
<td id="ttA5" style="height:24px;" class="ColTitle padding">Phone number</td>
<td id="ttA6" style="height:24px;" class="ColTitle padding">Adress</td>
<td id="ttA7" style="height:24px;" class="ColTitle padding">city_user</td>
<td id="ttA8" style="height:24px;" class="ColTitle padding">photo_user</td>
<td id="ttA9" style="height:24px;" class="ColTitle padding">longitude_user</td>
<td id="ttA10" style="height:24px;" class="ColTitle padding">latitude_user</td>
<td id="ttA11" style="height:24px;" class="ColTitle padding">about_user</td>
<td id="ttA12" style="height:24px;" class="ColTitle padding">login_user</td>
<td id="ttA13" style="height:24px;" class="ColTitle padding">motdepasse_user</td>
<td id="ttA14" style="height:24px;" class="ColTitle padding">facebook_user</td>
<td id="ttA15" style="height:24px;" class="ColTitle padding">google_user</td>
<td id="ttA16" style="height:24px;" class="ColTitle padding">lastdateConnexion_user</td>
<td id="ttA18" style="height:24px;" class="ColTitle padding">emailAdresse_user</td>
<td id="ttA19" style="height:24px;" class="ColTitle padding">state_user</td>
<td id="ttA20" style="height:24px;" class="ColTitle padding">datecreated</td>
<td id="ttA21" style="border-right-width:0;height:24px;" class="ColTitle padding">hash_enreg</td>
</tr>
<tr style="border:0" class="ColTitle padding"><td class="wbcolA2"></td>
<td class="wbcolA3"></td>
<td class="wbcolA4"></td>
<td class="wbcolA5"></td>
<td class="wbcolA6"></td>
<td class="wbcolA7"></td>
<td class="wbcolA8"></td>
<td class="wbcolA9"></td>
<td class="wbcolA10"></td>
<td class="wbcolA11"></td>
<td class="wbcolA12"></td>
<td class="wbcolA13"></td>
<td class="wbcolA14"></td>
<td class="wbcolA15"></td>
<td class="wbcolA16"></td>
<td class="wbcolA18"></td>
<td class="wbcolA19"></td>
<td class="wbcolA20"></td>
<td style="border-right-width:0;" class="wbcolA21"></td>
</tr>

<tr class="OddRows padding" id="A1_1"><td style=" height:22px;padding-right:2px;" id="c1-A2" class="alignright l-0 wbcolA2 communbc-A2 padding">1</td>
<td style=" height:22px;padding-left:2px;" id="c1-A3" class="l-1 wbcolA3 communbc-A3 padding">first name</td>
<td style=" height:22px;padding-left:2px;" id="c1-A4" class="l-1 wbcolA4 communbc-A4 padding">last name</td>
<td style=" height:22px;padding-left:2px;" id="c1-A5" class="l-1 wbcolA5 communbc-A5 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c1-A6" class="l-1 wbcolA6 communbc-A6 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c1-A7" class="l-1 wbcolA7 communbc-A7 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c1-A8" class="l-1 wbcolA8 communbc-A8 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c1-A9" class="l-1 wbcolA9 communbc-A9 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c1-A10" class="l-1 wbcolA10 communbc-A10 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c1-A11" class="l-1 wbcolA11 communbc-A11 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c1-A12" class="l-1 wbcolA12 communbc-A12 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c1-A13" class="l-1 wbcolA13 communbc-A13 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c1-A14" class="l-1 wbcolA14 communbc-A14 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c1-A15" class="l-1 wbcolA15 communbc-A15 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c1-A16" class="l-1 wbcolA16 communbc-A16 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c1-A18" class="l-1 wbcolA18 communbc-A18 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c1-A19" class="l-1 wbcolA19 communbc-A19 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c1-A20" class="l-1 wbcolA20 communbc-A20 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c1-A21" class="l-1 wbcolA21 communbc-A21 padding"></td>
</tr>
<tr class="EvenRows padding" id="A1_2"><td style=" height:22px;padding-right:2px;" id="c2-A2" class="alignright l-0 wbcolA2 communbc-A2 padding">2</td>
<td style=" height:22px;padding-left:2px;" id="c2-A3" class="l-1 wbcolA3 communbc-A3 padding">first name2</td>
<td style=" height:22px;padding-left:2px;" id="c2-A4" class="l-1 wbcolA4 communbc-A4 padding">last name2</td>
<td style=" height:22px;padding-left:2px;" id="c2-A5" class="l-1 wbcolA5 communbc-A5 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c2-A6" class="l-1 wbcolA6 communbc-A6 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c2-A7" class="l-1 wbcolA7 communbc-A7 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c2-A8" class="l-1 wbcolA8 communbc-A8 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c2-A9" class="l-1 wbcolA9 communbc-A9 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c2-A10" class="l-1 wbcolA10 communbc-A10 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c2-A11" class="l-1 wbcolA11 communbc-A11 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c2-A12" class="l-1 wbcolA12 communbc-A12 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c2-A13" class="l-1 wbcolA13 communbc-A13 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c2-A14" class="l-1 wbcolA14 communbc-A14 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c2-A15" class="l-1 wbcolA15 communbc-A15 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c2-A16" class="l-1 wbcolA16 communbc-A16 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c2-A18" class="l-1 wbcolA18 communbc-A18 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c2-A19" class="l-1 wbcolA19 communbc-A19 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c2-A20" class="l-1 wbcolA20 communbc-A20 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c2-A21" class="l-1 wbcolA21 communbc-A21 padding"></td>
</tr>
<tr class="OddRows padding" id="A1_3"><td style=" height:22px;padding-right:2px;" id="c3-A2" class="alignright l-0 wbcolA2 communbc-A2 padding">3</td>
<td style=" height:22px;padding-left:2px;" id="c3-A3" class="l-1 wbcolA3 communbc-A3 padding">first name3</td>
<td style=" height:22px;padding-left:2px;" id="c3-A4" class="l-1 wbcolA4 communbc-A4 padding">last name3</td>
<td style=" height:22px;padding-left:2px;" id="c3-A5" class="l-1 wbcolA5 communbc-A5 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c3-A6" class="l-1 wbcolA6 communbc-A6 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c3-A7" class="l-1 wbcolA7 communbc-A7 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c3-A8" class="l-1 wbcolA8 communbc-A8 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c3-A9" class="l-1 wbcolA9 communbc-A9 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c3-A10" class="l-1 wbcolA10 communbc-A10 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c3-A11" class="l-1 wbcolA11 communbc-A11 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c3-A12" class="l-1 wbcolA12 communbc-A12 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c3-A13" class="l-1 wbcolA13 communbc-A13 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c3-A14" class="l-1 wbcolA14 communbc-A14 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c3-A15" class="l-1 wbcolA15 communbc-A15 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c3-A16" class="l-1 wbcolA16 communbc-A16 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c3-A18" class="l-1 wbcolA18 communbc-A18 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c3-A19" class="l-1 wbcolA19 communbc-A19 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c3-A20" class="l-1 wbcolA20 communbc-A20 padding"></td>
<td style=" height:22px;padding-left:2px;" id="c3-A21" class="l-1 wbcolA21 communbc-A21 padding"></td>
</tr></table></div></td></tr></table></div></td></tr></table></form>
<script type="text/javascript">var _bTable16_=False;
</script>
<script type="text/javascript" src="./res/WDUtil.js?96576190" charset="windows-1252"></script>
<script type="text/javascript" src="./res/fb.js?9b63b6f6"></script>
<script type="text/javascript">
var _PHPID_="PHPSESSID=cn9vcjo1p5mrceb3046cnhkh82";
var _PAGE_=Document["PAGE_LOGIN_USER"];
<!--
var _COL={9:"#fff0a5",66:"#745f1d"};
FUNCTION _LOD_COM(Event){}
FUNCTION _UNL_COM(Event){}
//-->
</script>

</body></html>
]))

Cela m'affiche le résultat suivant





J'essaie de comprendre ce qui se passe mais je ne vois pas le problème.

VOici d'autres informations concernant le projet windev mobil :








Message modifié, 24 août 2017 - 12:44