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

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

Postby Vlado » Mon Dec 26, 2005 7:17 pm

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
Vlado
 
Posts: 2
Joined: Mon Dec 26, 2005 7:12 pm
Location: Popovaca, Croatia

Postby Antonio Linares » Mon Dec 26, 2005 8:44 pm

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
User avatar
Antonio Linares
Site Admin
 
Posts: 41356
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Vlado » Tue Dec 27, 2005 7:35 am

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.
Vlado
 
Posts: 2
Joined: Mon Dec 26, 2005 7:12 pm
Location: Popovaca, Croatia

Postby Antonio Linares » Tue Dec 27, 2005 8:53 am

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41356
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 43 guests