From DBF database Report in XML document , Unicode: UTF 8

Post Reply
Vlado
Posts: 2
Joined: Mon Dec 26, 2005 7:12 pm
Location: Popovaca, Croatia

From DBF database Report in XML document , Unicode: UTF 8

Post by Vlado »

Anybody could give an example to solve the following problem:

From DBF database Report in XML document , Unicode:UTF 8.
Data in DBF are in ANSI and OEM.

Thanks

Vlado
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Vlado,

Juest a guess: you may need to convert all your fields values to Oem using AnsiToOem() or to Ansi using OemToAnsi().
regards, saludos

Antonio Linares
www.fivetechsoft.com
Vlado
Posts: 2
Joined: Mon Dec 26, 2005 7:12 pm
Location: Popovaca, Croatia

Post by Vlado »

Antonio,

Jes, I same think about that.

1. Transform to ANSI.

2. From ANSI to Unicode UTF-8
Functions: ANSItoUnicode('UTF-8')
There are Functions AnsiToWide(cAnsi) -> cUnicode
WideToAnsi(cUnicode) -> cAnsi
I have UnicodeCharacterDatabase from www.unicode.org.

3. Generating XML document.
ASCI file with XML tags with xsd:schema.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

FWH provides AnsiToWide( cAnsi ) --> cWide and WideToAnsi( cWide ) --> cAnsi functions.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply