not ISOEM(), ISANSI() or IsUTF8()
Posted: Sat Aug 26, 2023 7:17 pm
hi,
i do try get String from DBF FIELD Type "C"
than i "test" for ISOEM(), ISANSI() or IsUTF8()
it "seems" that i got :
so what Type is it when got "ELSE"
---
DBF was open with CODEPAGE, hb_cdpSelect() "DE850" / "DEWIN" and FW_SetUnicode() .T./.F.
i do try get String from DBF FIELD Type "C"
- Code: Select all Expand view
- xValue := FieldGet(ii)
cType := aStruct [ ii ] [ DBS_TYPE ]
than i "test" for ISOEM(), ISANSI() or IsUTF8()
- Code: Select all Expand view
- DO CASE
CASE cType = "C" .or. cType = "M"
IF ISOEM(xValue)
// OEM
ELSEIF ISANSI(xValue)
// ANSI
ELSEIF IsUTF8(xValue)
// UTF8
ELSE
// what Type is "this" ?
ENDIF
it "seems" that i got :
ISOEM() when have "äöü ÄÖÜ"
ISANSI() when have "ß"
i never get IsUTF8
but get a lot "ELSE" (no "Umlaute")
so what Type is it when got "ELSE"
---
DBF was open with CODEPAGE, hb_cdpSelect() "DE850" / "DEWIN" and FW_SetUnicode() .T./.F.