hi,
i try to use
Code: Select all
IF HB_UAT("ü",cName) > 0 // not work
cName := HB_UTF8STRTRAN(cName,"ü","ue")
where i use Notepad++ and UTF8 (also try ANSI) for that Code.
but it does work so i wrote Debug Code to get ASC() of each Sign.
Code: Select all
PROCEDURE DoTestSign(cName)
LOCAL nSign, i , iMax, aSign := {}
IF HB_UAT("Rot", cName) > 0
iMax := HB_ULEN(cName)
FOR i := 1 TO iMax
nSign := ASC( HB_UTF8SUBSTR(cName,i,1) )
AADD(aSign, nSign)
NEXT
MsgInfo( hb_valToExp(aSign),cName)
ENDIF
RETURN
all Sign > 128 are interessing and i found CHR(204)
Code: Select all
IF CHR(117)+CHR(204) $ cName
cName := HB_UTF8STRTRAN(cName,CHR(117)+CHR(204),"ue")
ENDIF
this work but i still had CHR(204) in CMD Box
than i change Code in 2 Parts
Code: Select all
IF CHR(117)+CHR(204) $ cName
cName := HB_UTF8STRTRAN(cName,CHR(117),"ue")
ENDIF
// this is need to delete Square in CMD Box
nPosi := HB_UAT(CHR(204),cName)
IF nPosi > 0
cName := HB_UTF8SUBSTR(cName,1,nPosi-1)+HB_UTF8SUBSTR(cName,nPosi+1)
ENDIF
now i got a Filename which i can access with my harbour App
attached Code
why does it not work direct with "ü"
do i still have wrong Editor for UTF8 and German "Umlaut"