FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Cyrillic in xBrowse
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Cyrillic in xBrowse
Posted: Mon Feb 22, 2016 08:54 AM

In the example ximage01.prg xbrowse in the list of files. If any file has Cyrillic name, it looks in xbrowse unreadable!

FWH16.01

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Cyrillic in xBrowse
Posted: Mon Feb 22, 2016 09:43 AM

For now, yes.
We shall soon implement what you are looking for.

Regards



G. N. Rao.

Hyderabad, India
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Cyrillic in xBrowse
Posted: Tue Feb 23, 2016 03:29 PM
Please try the ximage01.prg with the following changes with Harbour. (Not with xHarbour)

Add these two lines at the top of the Main() function.
Code (fw): Select all Collapse
   FW_SetUnicode( .t. )
   HB_SETCODEPAGE( "UTF8" )

just before "aImages := ReadFolder()"

Please change these 2 lines of code
Code (fw): Select all Collapse
   @ oWnd:oBar:nHeight,300 XIMAGE oImage SIZE 0,-oWnd:oMsgBar:nHeight ;
      OF oWnd SOURCE oBrw:aRow[ 2 ]


as

Code (fw): Select all Collapse
   @ oWnd:oBar:nHeight,300 XIMAGE oImage SIZE 0,-oWnd:oMsgBar:nHeight ;
      OF oWnd SOURCE MEMOREAD( oBrw:aRow[ 2 ] )

Now you should see filenames of any language including Cyrillic and also view the images contained in those files.

I tested this here with local languages and I do not have any doubt that it should work for you there.

Important: This works only with Harbour and NOT with xHarbour. Sometime back Harbour team made Harbour code compatible with Unicode.
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion