Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The encoding Word 2007 uses
Message
From
10/06/2008 03:19:01
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01322728
Message ID:
01322763
Views:
13
>Data between
>
><w:binData w:name="wordml://02000001.jpg" xml:space="preserve"> and </w:binData>
>
are encoded in base64 and base64 is 7 bit encoding.
>
>But...
>
>if xml encoding is "UTF-8","UTF-7" no problema..
>if xml encoding is "UTF-16" you can try use
>
>
>STRCONV(STRCONV(STRCONV(FILETOSTR("newpicture.jpg"),13),1),5)
>
>
>1) to base64
>2) to DBCS
>3) to UNICODE (UTF-16)
>
>if xml encoding is "UTF-32" it's problem...

This is a fine piece of code. Thanks, it works extremely well.

Now, I just need to find the equivalent of that in .NET. Because, with its encoding, this is where I had some problems with it.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform