FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour National Characters in Filename?
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
National Characters in Filename?
Posted: Fri Jan 08, 2016 03:53 PM

Hi,

I try to use our national characters in filename. But I could not. (Turkish)

I tried to use oemtoansi(), ansitooem(). No success.

When I print HB_SetCodePage(), "EN"

Can anyone help me?

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: National Characters in Filename?
Posted: Sat Jan 09, 2016 07:55 AM

Hakan,

REQUEST HB_CODEPAGE_TRWIN

...

HB_CDPSELECT( "TRWIN" )

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: National Characters in Filename?
Posted: Sat Jan 09, 2016 08:34 AM
Antonio Linares wrote:Hakan,

REQUEST HB_CODEPAGE_TRWIN

...

HB_CDPSELECT( "TRWIN" )



Thank you Antonio,

It works OK.
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: National Characters in Filename?
Posted: Sat Apr 23, 2016 12:05 PM
Hi Antonio,

As you have seen before, I start to use

Code (fw): Select all Collapse
REQUEST HB_CODEPAGE_TRWIN
HB_CDPSELECT( "TRWIN" )


After this change, I have another problem with TGet(). I have some get variables that has picture "@!". It should be uppercase all characters in get.

All character is working good except our national character "İ". "İ" is the uppercase of "i".

When I press the upper "İ", there is no problem, but lower "i" is converted to "I" (without dot).

1. I have tried to build my application with TGet.prg after delete all my obj files. The result is same.

2. I have searched the picture "@!" in TGet.prg and found in line 1203.
Code (fw): Select all Collapse
nKey = Asc( CharUpper( nKey ) )

I have searched CharUpper function info but there is not in fwh source directory. I dont know harbours is.

I have changed this line like that.
Code (fw): Select all Collapse
nKey = Asc(Upper(Chr(nKey)))

It is long way but It is working GOOD.

I dont want to changed fwh source in my application. Should I always us like this.

Any opinion?

Thanks.
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: National Characters in Filename?
Posted: Sun Apr 24, 2016 08:50 AM
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion