User (Legacy) Posted September 10, 2003 Report Share Posted September 10, 2003 Hello When I set legends for X-axis on any languages ( not english ) with english default system locale then I see garbage instead of correct string. Why? PS I pass in ChartFX->put_Legend() correct unicode string... Thanks Link to comment Share on other sites More sharing options...
Software FX Posted September 10, 2003 Report Share Posted September 10, 2003 You need to select the appropriate character set and font in order to display Unicode characters. For more information check out the following KB articles and samples: Samples: http://support.softwarefx.com/samples/cfxie/internationalization/charset.asp Articles: Q1462021. Double byte characters (DBCS) are lost when creating active chart -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted September 10, 2003 Author Report Share Posted September 10, 2003 If I don't know user's charset (user can located in any country) then can I do any more? Thanks Link to comment Share on other sites More sharing options...
Software FX Posted September 10, 2003 Report Share Posted September 10, 2003 You need to know the charset in which you want to display your strings. This is true for ANY control, if you want to display your strings in a textbox you have to do the same. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted September 11, 2003 Author Report Share Posted September 11, 2003 Sorry but you are wrong. In my unicode project in MS Visual Studio 6.0 I can create a dialog and set for it font "Tahoma" (witch is unicode font and allows using various charset) and I can use API function for unicode SetWindowTextW and GetWindowTextW and display correct string on various languages. Thanks for your answer Link to comment Share on other sites More sharing options...
Software FX Posted September 11, 2003 Report Share Posted September 11, 2003 SetWindowTextW is a Windows NT Only Function. Chart FX is designed to work in both Windows NT and Windows 9x therefore the strings are converted to MBCS. This conversion is done using the current threads Code Page. which means it will use the default codepage for your OS version (e.g. Japanese if your Windows version is in Japanese). Same applies for the Cha Set, we use the Default Charset for the system. If you want to use a different one you need to specify it. What CharSet are you setting to the font you are assigning to Chart FX ? What Font are you using ? Can you please attach the code you use to set the font to the chart. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted September 12, 2003 Author Report Share Posted September 12, 2003 Thanks for your reply. I didn't know that ChartFX was designed to work in both WinNT and Win 9x. Have you got version of ChartFX for WinNT only with complete supporting unicode? If you havn't got it then you are going to create it, may be? Thanks Link to comment Share on other sites More sharing options...
Software FX Posted September 12, 2003 Report Share Posted September 12, 2003 No, but the current version SUPPORTS Unicode. You can display ANY string in ANY language. You may be making a mistake when assigning the font to the chart. 1) Is your Windows Version in the same language than the language you are trying to display ? 2) Can you post the code that you use to set the chart's fonts ? -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.