Re: Where is André ? André says "goodbye"

J. Landman Gay jacque at hyperactivesw.com
Sat Mar 14 03:00:52 EDT 2020


Not at all, the most likely reason is that no one was sure of the answer. 
Or maybe your post got lost in the fog. But re-reading your post, it looks 
like you're doing the textEncode at the wrong time. Storing encoded text in 
LC can give unexpected results, instead try putting the textEncode function 
directly into the line that writes the file.

put textEncode(revXMLText (idID), "UTF8") into URL **myFile.xml**

The general rule is that encoding should happen when data leaves LC, and 
should be decoded when data comes in. Data manipulated inside LC shouldn't 
be changed.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On March 14, 2020 1:40:06 AM Charles Lachat via use-livecode 
<use-livecode at lists.runrev.com> wrote:

> I feel André is not welcomed as an outsider in this list.
>
> Too bad.
>
> CL, not enough philosophical, not enough Catalina
>
>
>
>
>> Le 11 mars 2020 à 23:48, Charles Lachat via use-livecode 
>> <use-livecode at lists.runrev.com> a écrit :
>>
>> Hi,
>>
>> Let’s say I build an XML tree in LiveCode; part of it is:
>>
>> revXMLPutIntoNode idID, "/identity/name",  textEncode (field  "name_source" 
>> ,"UTF8") -- fld contains "André"
>>
>> When I write the XML file:
>>
>> put revXMLText (idID) into URL **myFile.xml**
>>
>> … I don’t find André any longer, but Andr&#xE9;
>>
>> How can I fix this using LiveCode tools ?
>> (I mean without using i.e. *replace oldString with newString in container* 
>> for each accented character)
>>
>> Thanks.
>>
>> CL
>> =======
>> full example at:
>> https://forums.livecode.com/viewtopic.php?f=7&t=33761
>>
>>
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your 
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode






More information about the use-livecode mailing list