FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour From DBF database Report in XML document , Unicode: UTF 8
Posts: 2
Joined: Mon Dec 26, 2005 07:12 PM

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

Posted: Mon Dec 26, 2005 07: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
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

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

Posted: Mon Dec 26, 2005 08: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
Posts: 2
Joined: Mon Dec 26, 2005 07:12 PM

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

Posted: Tue Dec 27, 2005 07: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.

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

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

Posted: Tue Dec 27, 2005 08:53 AM

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

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion