Cyrillic in xBrowse

Cyrillic in xBrowse

Postby Natter » Mon Feb 22, 2016 8: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
Natter
 
Posts: 1210
Joined: Mon May 14, 2007 9:49 am

Re: Cyrillic in xBrowse

Postby nageswaragunupudi » Mon Feb 22, 2016 9:43 am

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

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Cyrillic in xBrowse

Postby nageswaragunupudi » Tue Feb 23, 2016 3: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: Select all  Expand view
  FW_SetUnicode( .t. )
   HB_SETCODEPAGE( "UTF8" )
 

just before "aImages := ReadFolder()"

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


as

Code: Select all  Expand view
  @ 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
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 71 guests