Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

unicode read write problem vb6


  • Please log in to reply

#1
amieln

amieln

    New Member

  • Member
  • Pip
  • 4 posts
hello i am using windows xp pro sp2 with bidirectional hebrew english arabic

lang intstalled.

The arabic is jordan arabic


and reading unicode from file writing it to label control caption property.

the label font is initialized in design time to

ariel unicode ms.

Here is the code:

Dim JordanArabicLocaleId As Long

ProjectDirectory = App.Path
Set fs = CreateObject("Scripting.FileSystemObject")
'opening the file for unicode reading
Set ResultsFile = fs.OpenTextFile(ProjectDirectory + "\" + "ArabicGuiText.txt", ForReading, , TristateTrue)
'converting the string from unucode to regular code
strLineReadFromFile = StrConv(ResultsFile.ReadLine, vbFromUnicode, JordanArabicLocaleId)

MsgBox strLineReadFromFile


LabelArab.Caption = strLineReadFromFile



LabelArab.Caption = strLineReadFromFile




but i get ??????? signes instead of the real string in the label caption


any Help would be welcomed
  • 0

Advertisements


#2
stu_design

stu_design

    Member

  • Member
  • PipPipPip
  • 217 posts
why dont u use properties window to change teh font??
  • 0

#3
stu_design

stu_design

    Member

  • Member
  • PipPipPip
  • 217 posts
and what references are u using?
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP