Solved

Unicode Program Problem

Posted on 2001-06-02
13
373 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
13 Comments
 
LVL 38

Expert Comment

by:PaulHews
Comment Utility
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
Comment Utility
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
Comment Utility
What keys are pressed in MS Word to make that character?
0
 

Author Comment

by:astronus
Comment Utility
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
Comment Utility
how to print special unicode character is what i meant
0
 
LVL 15

Expert Comment

by:robbert
Comment Utility
Is it characters in the shape "ề" --OR-- "&H0111" ? - Will be hard enough to find something, and we need complete info.
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 38

Expert Comment

by:PaulHews
Comment Utility
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
Comment Utility
how to print special unicode character is what i meant
0
 

Author Comment

by:astronus
Comment Utility
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
Comment Utility
>>
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
Comment Utility
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 200 total points
Comment Utility
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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now