Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > C++ Programming
|
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 1st, 2007, 11:25 AM
Registered User
 
Join Date: Feb 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Mangling Chinese Characters in a combo box

I have an urgent problem on my hands.
When I build a list of names (WCHAR) in a ComboBox that include Simplified Chinese, the drop-down displays the chinese characters correctly. However when I select an item containing the said characters it displays ??? for the first three characters (the fourth is correct), although the codes per each character in debug show the correct value. Writing the string on CBN_SELENDOK to a static text control yields the expected result (with some font tweaking though using mostly DONT_CARE). Writing it to an edit box or a list box yet again shows the ??? for the first three characters.
I am working in VC++ 6.0 Win32.
Anyone encountered something similar???
Any input is greatly appreciated.
Reply With Quote
  #2 (permalink)  
Old February 1st, 2007, 03:33 PM
Registered User
 
Join Date: Feb 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

RESOLVED:
The file we received from the customer was with Korean characters. They won't display correctly (if at all that's why I got "???")in Chinese locale.
Thanks for reading.
Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chinese characters appearing in Access DB countrymusicman Access VBA 1 April 18th, 2007 10:55 AM
Chinese characters rajanikrishna ASP.NET 1.0 and 1.1 Basics 1 April 25th, 2006 10:25 PM
asp:button to display chinese characters liduwan ASP.NET 1.0 and 1.1 Basics 4 January 14th, 2006 09:50 PM
Read XML having japanese and chinese characters mvvramesh XML 0 May 31st, 2004 06:17 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.