Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Unicode Program Problem

Posted on 2001-06-02
13
Medium Priority
?
389 Views
Last Modified: 2012-05-04
I try to read in a unicode file (open file for input as #1) which has some special character like "ề" and try to display it to other application like microsft word using SendKeys function but It's display something else "A".  How do I display the special unicode character "ề" to other application correctly using sendkeys by reading unicode file.
0
Comment
Question by:astronus
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
13 Comments
 
LVL 38

Expert Comment

by:PaulHews
ID: 6150259
You have to send the key combination that creates that special character, whatever it is.  What keys are pressed in MS Word to make that character?
0
 

Author Comment

by:astronus
ID: 6150699
eg. &H0111 for special d-

but u r reading that character from a file, how can u print out exactly as u want
0
 
LVL 38

Expert Comment

by:PaulHews
ID: 6150709
What keys are pressed in MS Word to make that character?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:astronus
ID: 6150759
eg. &H0111 for special d-

but u r reading that character from a file, how can u print out exactly as u want
0
 

Author Comment

by:astronus
ID: 6150785
how to print special unicode character is what i meant
0
 
LVL 15

Expert Comment

by:robbert
ID: 6150794
Is it characters in the shape "ề" --OR-- "&H0111" ? - Will be hard enough to find something, and we need complete info.
0
 
LVL 38

Expert Comment

by:PaulHews
ID: 6150795
If you are using sendkeys, then you have to know the exact key combination to produce that character.  You could use Word automation to write the unicode string to the document, but I've never tried it so I don't know if that will work.
0
 

Author Comment

by:astronus
ID: 6150831
how to print special unicode character is what i meant
0
 

Author Comment

by:astronus
ID: 6150833
I did but it's don't work, I believe there is some special assertion in the sendkey in other to send unicode character into microsoft word using sendkeys but don't know how
0
 
LVL 38

Expert Comment

by:PaulHews
ID: 6150870
>>
I did but it's don't work, I believe there is some special assertion in the sendkey in other to send
unicode character into microsoft word using sendkeys but don't know how
<<

Look, you can send CTRL, ALT or SHIFT combinations using SendKeys, but tell me the combination that you have to press in word so that I can do some tests!
0
 

Author Comment

by:astronus
ID: 6151004
I don't know the combination, but if you look on the Character Map, the character similar to character D(code:U+0111) , Description: U+0111:Latin Small Letter D with stroke.  HOw do I display that specific character using sendkeys
0
 
LVL 2

Accepted Solution

by:
WalterM earned 800 total points
ID: 6156507
Use:

   SendKeys ChrW$(273)

or

   SendKeys ChrW$(&H111)

This will send the Unicode character with code 273/&H111 to the active window. Note that in order for the character to be displayed correctly, it has to be part of the active font.

Michel
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7132841
Hi astronus,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will suggest to:

    Refund points and save as a 0-pt PAQ.

EXPERTS: Post a comment if you are certain that an expert deserves credit.  Explain why.
==========
DanRollins -- EE database cleanup volunteer
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

597 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question