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

Mark Wieder ahsoftware at sonic.net
Sat Mar 14 13:48:20 EDT 2020


On 3/14/20 6:29 AM, Paul Dupuis via use-livecode wrote:

> You still just get Andr - the é is removed
> 
> I think revXMLText may convert all non-ASCII characters to HTML entities

I think urlEncode/urlDecode is your friend here (watch the wordwrap):

on mouseUp
    local idID

    put 
revXMLCreateTree("<identity><name></name></identity>",false,true,false) 
into idID
    revXMLPutIntoNode idID, "/identity/name",  urlEncode(field 
"name_source") -- fld contains "André"
    put urlDecode(revXMLText(idID,,true)) into URL 
("file:"&specialFolderPath("desktop")&slash&"myFile.xml")
end mouseUp

-- 
  Mark Wieder
  ahsoftware at gmail.com




More information about the use-livecode mailing list