Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XML manipulation under HTTP
Message
 
To
21/08/2002 12:38:55
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Miscellaneous
Thread ID:
00691791
Message ID:
00692091
Views:
26
Hi Michel,

I'm not sure at which level the conversion happens to you. What I've done is this. On my web server I've created a very simple AFP page:
<%
response.ContentType = "text/xml"
lcXML = '<?xml version="1.0" encoding="utf-8" ?>'+Chr(13)+Chr(10)+'<root><data>éeAc</data></root>"'
lcXML = Strconv(Strconv(lcXML,1),9)
? lcXML
%>
On the client I run this code:
loHTTP.Open('GET',"http://localhost/utf8.afp",.F.)
loHTTP.Send()
? loHTTP.ResponseBody
? Strconv(loHTTP.ResponseBody,11)
The first line prints an UTF-8 encoded string, the second line correctly contains the string as I've sent it including the accented "é". IOW, for me it works. There must be some additional encoding going on on your site.

Christof
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform