How to read a unicode TXT file

Post Reply
Jack
Posts: 249
Joined: Wed Jul 11, 2007 11:06 am

How to read a unicode TXT file

Post by Jack »

Hi,
What is the instruction to open a Unicode TXT file .

Thanks for your help .
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: How to read a unicode TXT file

Post by nageswaragunupudi »

MemoRead() or any other file read function of (x)Harbour can read Unicode (utf-8) text file.

For display and edit Unicode text set FW_SetUnicode( .T. ). MemoEdit() and GET MEMO can edit and save Unicode text.

Code: Select all

   local cUnicodeText

   FW_SetUnicode( .t. )

   cUnicodeText   := MEMOREAD( "unicode.txt" )

   MEMOEDIT( cUnicodeText )
 
Regards

G. N. Rao.
Hyderabad, India
Post Reply