Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
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