Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XML and accented chars and Adobe
Message
 
 
To
30/05/2005 16:15:16
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01018584
Message ID:
01018594
Views:
10
This message has been marked as the solution to the initial question of the thread.
Albert,

If you use a PRE tag to wrap your xml/html code in here you won't have to yank the < .

The real problem is that the character é is not a valid UTF-8 character. In UTF-8 the ASCII characters 128-255 all take 2 bytes to encode in UTF8. So you'll need to use strconv() the data to utf8. I don't have VFP7 installed on this new machine so I can't check, but I know that VFP8 can. You'll need to convert character to DBCS and then DBCS to UTF8.

>I am exporting VFP data to Adobe via creating an .xfdf file that contains an xml string. Adobe reads this file and stuffs fields on the form with the appropriate data.
>
>The only problem I have seems to be with accented characters (e.g. Montréal). The character shows up properly in the .xfdf file when viewed with notepad but it is a "box" in Adobe.
>
>I am using this as the header string in the xml file - does it has to change or is it something within Adobe that has to be set?
>
>(note: opening and closing brackets have been removed below as they throw off the html here)
>
>?xml version="1.0" encoding="UTF-8"?
>xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve" etc
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform