Sunday, 20 July 2014

How to decode/encode XML?



i'm sending request to XML document, then i need to parse some data, and sometimes in this document are symbol like this:


http:// http://ift.tt/1yKmbe5 (screenshot)


and if this symbol are in this document - data dont record to my string variable... sorry for my bad english...



var
response:string;
begin
response:=IdHTTP1.GET('http:// http://ift.tt/1k4sBBO');
// parsing data...
end;


How can i decode/encode this symbol? Here is encoded/decoded variant (for example) of this symbol - 𞉀 ('&#123456') (numbers change all the time in XML document) - this shows me online decoder/encoder, but how to encode/decode it in Delphi? I'm using Delphi 7...


No comments:

Post a Comment