Miguel, The all-in-one solution that you show below would be perfect but really hard to implement :). I think it would be enough to internally support just one UNICODE encoding such as UCS4 which supports all UNICODE, is fixed-length, and can be easily converted to/from other encodings. Also it seems to be the best to store in the extended-format DBF files.
Ok, as I see there are no short-term plans to implement UNICODE in xHarbour. That is what I wanted to know. We will need to solve the problem in another way The xHarbour's codepages seem to be flexible enough to implement custom 8-bit codepage containing English, Polish, Russian and Ukrainian characters. The Oracle UNICODE strings will be converted to/from this codepage by RDD. While not-perfect and limited to just a few languages this solution may work for some time. GT will need to be adapted to translate the custom codepage to UNICODE and comunicate with console via UNICODE. Best regards, Jacek > Ron Pinkas escribió: >> Miguel, >> >> I believe that Jacek is talking about full native VM support for >> UNICODE, f.e. assume an extra member in the asString structure to >> indicate encoding. Though I must admit I have no understanding of >> what kind of support can be provided for multiple languages in a >> single string. >> >> Ron >> > > Yes, and I think the same as i purpose some time ago to Luiz Rafael. > > But it has a speed cost in vm. and how identify strings. > > LOCAL cUTF8Var := _T"dfgkdjf" > LOCAL cSTRVar := "dfgkdjf" //As SetCodePage > LOCAL cWideVar := _W"dfgkdjf" > > LOCAL cSTROemVar := _O"dfgkdjf" > LOCAL cSTRAnsiVar := _A"dfgkdjf" > > struct hb_struString > { > ULONG length; > ULONG allocated; > char * value; > HB_COUNTER * pulHolders; /* number of holders of this string */ > USHORT uencode; /* utf8, ansi, oem, wide,... */ > }; > > > Nice work. > > Any voluntaries :) > > > Best regards, > Miguel Angel Marchuet > > > __________ Información de ESET NOD32 Antivirus, versión de la base de > firmas de virus 4490 (20091008) __________ > > ESET NOD32 Antivirus ha comprobado este mensaje. > > http://www.eset.com > > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ xHarbour-developers mailing list xHarbour-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xharbour-developers