<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.fr.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>13 Feb 2026 11:04:41 Z</lastBuildDate><pubDate>12 Feb 2026 09:58:02 Z</pubDate><description>bonjour,&#13;
&#13;
je reçois d'un champs rtf la variable icfr que je mets en forme json : &#13;
&#13;
[code:wl]&#13;
sJSON est une chaîne = [&#13;
	{&#13;
	"q":96,&#13;
	"i":"%1",&#13;
	"icfr":"%2"&#13;
	}&#13;
]&#13;
&#13;
&#13;
sJSON	= ChaîneConstruit(sJSON, gnIDProjet, sICFR)&#13;
sJSON = Remplace(sJSON,RC,"")&#13;
Trace(sJSON)&#13;
soit vJson = JSONVersVariant(sJSON)&#13;
[/code]&#13;
&#13;
{"q":96,"i":"10622","icfr":"{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1036{\fonttbl{\f0\fswiss\fprq2\fcharset0 Calibri;}}{\*\generator Riched20 10.0.26100}\viewkind4\uc1 \pard\f0\fs23 lolo\par}"}&#13;
&#13;
pour ensuite faire un appel à une API&#13;
&#13;
le variant ne veut pas se faire&#13;
je n'arrive pas à échapper les accolades...&#13;
&#13;
une diée &#13;
&#13;
merci&#13;
&#13;
--&#13;
LH</description><ttl>30</ttl><generator>WEBDEV</generator><language>fr_FR</language><link>https://forum.pcsoft.fr/en-US/pcsoft.fr.windev/279013-json-chaine-rtf/read.awp</link><title>json chaine rtf</title><managingEditor>moderateur@pcsoft.fr (The moderator)</managingEditor><webMaster>webmaster@pcsoft.fr (The webmaster)</webMaster><item><author>Laurent HERMANN</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/en-US/pcsoft.fr.windev/279013-json-chaine-rtf-279030/read.awp</comments><pubDate>13 Feb 2026 11:04:41 Z</pubDate><description>bonjour à tous et merci de vous être préoccupé de mon sort :)&#13;
&#13;
j'ai appliqué la façon du jsonversvariant sans que ça fcte&#13;
&#13;
a…</description><guid isPermaLink="true">https://forum.pcsoft.fr/en-US/pcsoft.fr.windev/279013-json-chaine-rtf-279030/read.awp</guid><link>https://forum.pcsoft.fr/en-US/pcsoft.fr.windev/279013-json-chaine-rtf-279030/read.awp</link><source url="https://forum.pcsoft.fr/en-US/pcsoft.fr.windev/279013-json-chaine-rtf/read.awp">json chaine rtf</source><title>Re: json chaine rtf</title></item><item><author>Fabrice N</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/en-US/pcsoft.fr.windev/279013-json-chaine-rtf-279028/read.awp</comments><pubDate>12 Feb 2026 17:15:56 Z</pubDate><description>Thierry,&#13;
&#13;
Laurent souhaitait juste que la fonction JSONVersVariant() puisse s'exécuter "sans provoquer une exception" car je p…</description><guid isPermaLink="true">https://forum.pcsoft.fr/en-US/pcsoft.fr.windev/279013-json-chaine-rtf-279028/read.awp</guid><link>https://forum.pcsoft.fr/en-US/pcsoft.fr.windev/279013-json-chaine-rtf-279028/read.awp</link><source url="https://forum.pcsoft.fr/en-US/pcsoft.fr.windev/279013-json-chaine-rtf/read.awp">json chaine rtf</source><title>Re: json chaine rtf</title></item><item><author>THIERRY TILLIER</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/en-US/pcsoft.fr.windev/279013-json-chaine-rtf-279027/read.awp</comments><pubDate>12 Feb 2026 16:18:54 Z</pubDate><description>Fabrice &#13;
&#13;
Si tu regarde bien ton code la commande ; jJSON.VersChaîne() réalise le double échappement \\.&#13;
Et comme Laurent veu…</description><guid isPermaLink="true">https://forum.pcsoft.fr/en-US/pcsoft.fr.windev/279013-json-chaine-rtf-279027/read.awp</guid><link>https://forum.pcsoft.fr/en-US/pcsoft.fr.windev/279013-json-chaine-rtf-279027/read.awp</link><source url="https://forum.pcsoft.fr/en-US/pcsoft.fr.windev/279013-json-chaine-rtf/read.awp">json chaine rtf</source><title>Re: json chaine rtf</title></item><item><author>Fabrice N</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/en-US/pcsoft.fr.windev/279013-json-chaine-rtf-279025/read.awp</comments><pubDate>12 Feb 2026 14:23:03 Z</pubDate><description>THIERRY TILLIER a écrit : &#13;
&gt; Bonjour Laurent,&#13;
&gt; &#13;
&gt; Cela ne peux pas pas fonctionner car en JSON les \ ouvrent une séquence d'…</description><guid isPermaLink="true">https://forum.pcsoft.fr/en-US/pcsoft.fr.windev/279013-json-chaine-rtf-279025/read.awp</guid><link>https://forum.pcsoft.fr/en-US/pcsoft.fr.windev/279013-json-chaine-rtf-279025/read.awp</link><source url="https://forum.pcsoft.fr/en-US/pcsoft.fr.windev/279013-json-chaine-rtf/read.awp">json chaine rtf</source><title>Re: json chaine rtf</title></item><item><author>THIERRY TILLIER</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/en-US/pcsoft.fr.windev/279013-json-chaine-rtf-279024/read.awp</comments><pubDate>12 Feb 2026 14:13:32 Z</pubDate><description>Et attention aux guillemets en trop.&#13;
&#13;
--&#13;
Thierry TILLIER&#13;
Développeur WINDEV -WEBDEV&#13;
Formation WINDEV : &#13;
https://www.cours-…</description><guid isPermaLink="true">https://forum.pcsoft.fr/en-US/pcsoft.fr.windev/279013-json-chaine-rtf-279024/read.awp</guid><link>https://forum.pcsoft.fr/en-US/pcsoft.fr.windev/279013-json-chaine-rtf-279024/read.awp</link><source url="https://forum.pcsoft.fr/en-US/pcsoft.fr.windev/279013-json-chaine-rtf/read.awp">json chaine rtf</source><title>Re: json chaine rtf</title></item><item><author>THIERRY TILLIER</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/en-US/pcsoft.fr.windev/279013-json-chaine-rtf-279023/read.awp</comments><pubDate>12 Feb 2026 14:11:36 Z</pubDate><description>Bonjour Laurent,&#13;
&#13;
Cela ne peux pas pas fonctionner car en JSON les \ ouvrent une séquence d'échappement. Du coup \ansi et vu c…</description><guid isPermaLink="true">https://forum.pcsoft.fr/en-US/pcsoft.fr.windev/279013-json-chaine-rtf-279023/read.awp</guid><link>https://forum.pcsoft.fr/en-US/pcsoft.fr.windev/279013-json-chaine-rtf-279023/read.awp</link><source url="https://forum.pcsoft.fr/en-US/pcsoft.fr.windev/279013-json-chaine-rtf/read.awp">json chaine rtf</source><title>Re: json chaine rtf</title></item><item><author>Fabrice N</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/en-US/pcsoft.fr.windev/279013-json-chaine-rtf-279015/read.awp</comments><pubDate>12 Feb 2026 10:53:10 Z</pubDate><description>Bonjour,&#13;
Essayes de passer directement par un type JSON&#13;
&#13;
[code:wl]&#13;
jJSON est un JSON&#13;
jJSON.q = 96&#13;
jJSON.i = gnIDProjet&#13;
jJ…</description><guid isPermaLink="true">https://forum.pcsoft.fr/en-US/pcsoft.fr.windev/279013-json-chaine-rtf-279015/read.awp</guid><link>https://forum.pcsoft.fr/en-US/pcsoft.fr.windev/279013-json-chaine-rtf-279015/read.awp</link><source url="https://forum.pcsoft.fr/en-US/pcsoft.fr.windev/279013-json-chaine-rtf/read.awp">json chaine rtf</source><title>Re: json chaine rtf</title></item></channel></rss>
