Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Internationalization / April 2006

Tip: Looking for answers? Try searching our database.

Can non-Unicode application use a Unicode font?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Zhou Peng - 07 Apr 2006 16:24 GMT
Hi,

  I have an application developed on English environment and I am sure the  
author had never had such an anticipation using it in east Asia.
  But now we do use this application on Japanese version windows 2000.
  On one of its tools, there is a input box where you can input something  
to send to another process.
  I tried inputing some Japanese words, but when I completed inputing and  
push the [Enter] key, the inputed words became some garbage characters.So,  
I know that this tool may be a ANSI application and the font for that  
input box may be an English font such as Arial.
  Then, I sent out those Japanese words. When I went to see sending log  
file, those Japanese words were displayed correctly. (It proved my  
conclusion that the application is running in an ANSI environment and both  
its input and output are encoded as ANSI encoded string.)
  But during this process, I found an annoying problem.
  For example, I input a Japanese words '好', whose shift-jis encoded  
binary is 0x8D44, Unicode encoded binary is 0x597D. After I completed  
inputing, what is displayed in that input box is a pane and a character  
'D', two characters in font 'Courier'. May be the font for that input box  
is 'Courier'.
  My question:
    1.Is font 'Courier' a Unicode font? Can it be used to display ANSI  
encoded characters?
     2.Why does windows use ANSI encoded binary 0x8D44,not Unicode encoded  
binary 0x597D to resolve what will display in      that input box? As far as  
I know, windows 2000 uses Unicode as its internal encoding.

Signature

Tony Zhou

Chris Y - 20 Apr 2006 01:40 GMT
Hi, I think I am facing the same problem as you. I find that how it is
encoded depends on what else is typed in the Input box.  I have just posted
a message on this.

> Hi,
>
[quoted text clipped - 23 lines]
> binary 0x597D to resolve what will display in   that input box? As far as
> I know, windows 2000 uses Unicode as its internal encoding.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.