Michel,
>>The first one is generated with character translation to UTF-8, the second one without.
>
>We have to remain within UTF-8. That's the requirement of the XSD schema. So, basically, the only think I can see is to remove all French characters and replace them with their base ASCII characters. I'll have to search for that function. I can't remember which one does it.
As I said, I'm not an expert, but both examples are UTF-8. In the valid one, VFP translated my CP1252 data to UTF-8, in the other it didn't. I think we both mean the same thing < g >.
For converting from 1252 to ASCII you can use ANSITOOEM() or CPCONVERT(). The first is an old one, the second the up to date function. ANSITOOEM() takes a single parameter.
Armin