Unicode problem

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
leihj
Newbie
Newbie
Posts: 7
Joined: Mon Mar 14, 2011 12:00 am
Contact:

Unicode problem

Post by leihj » Fri Jul 15, 2011 9:21 am

Hello,
We develop our project in WAS(WebSphere)6.0 ,but the chinese char in the chart is the messy code. The environment of server is Ubuntu9+WAS6. How should we solve this problem?

Thanks!
Best Regards,
Candy

Yeray
Site Admin
Site Admin
Posts: 9622
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Unicode problem

Post by Yeray » Tue Jul 19, 2011 11:39 am

Hello Candy,

The following code seems to work fine for me here.

Code: Select all

import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;

import com.steema.teechart.TChart;

public class Test {

	static TChart tChart1;
	
    public static void main(String [] args){
        final Display display = new Display();
        Shell shell = new Shell(display);
        shell.setLayout(new FillLayout());
        shell.setSize(600,400);
    
        createChart(shell);
        initializechart();
        
        shell.open();
        while (!shell.isDisposed()) {
        	if (!display.readAndDispatch()) {
        		display.sleep();
        	}
        }
        display.dispose();
    }

	private static void createChart(Shell tmpShell) {
		tChart1 = new TChart(tmpShell, 0);
	}
	
	private static void initializechart() {
		tChart1.getAspect().setView3D(false);

		com.steema.teechart.styles.Bar bar1 = new com.steema.teechart.styles.Bar(tChart1.getChart());
		bar1.add(20, "玩具");
		bar1.add(40, "椅子");
		bar1.add(30, "灯");
	}
}
Could you please send us a simple example project we can run as-is to reproduce the problem here?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply