Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Kylix & Chinese

0 views
Skip to first unread message

zin...@gmail.com

unread,
May 24, 2007, 3:25:39 PM5/24/07
to
Hi,

I am running Kylix and wondered if it was possible to display localize
an application in Chinese.

If so what would be the steps to follow?

I am running on various distribution (Ubuntu, Suse...) so any
information should help.

Right now my application only shows ? for each chinese characters. The
same application works beautifully on Windows. (Delphi 7)

On the same Linux box, Firefox works ok at displaying chinese (all
fonts are installed).

Again any info would be appreciated.

Thanks

Zindine

Haruyuki FUJIMAKI

unread,
May 28, 2007, 2:58:20 AM5/28/07
to
Ni-hao,
In recent distros, default character code should be utf-8, so charset of
your code also must be fcsUnicode.
I have never displayed Chinese in my apps, but I have been able to
display Japanese fonts in utf-8 environment with following way.

uses qt,..;
.....
.....
f: TFont;

Initialization
begin
f := TFont.Create();
f.CharSet := fcsUnicode;
f.Name := 'chinese fontname'
QFont_setDefaultFont(f.Handle);
end;

Finalization
begin
f.Free;
end;
----------------
Hoping this helps you.

Haruyuki Fujimaki
Tsukuba, Japan

zin...@gmail.com

unread,
Jun 5, 2007, 4:47:50 PM6/5/07
to
Hi,

That did the trick.

Thanks a lot

Zindine

On May 28, 2:58 am, Haruyuki FUJIMAKI

0 new messages