farshadmohajeri / extpascal

Automatically exported from code.google.com/p/extpascal
49 stars 28 forks source link

Can not use Chinese character #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1.If I set the TExtButton.Text := '中文测试';//Chinese character
After run,on the IE,can not see anything.
If use English character,it is OK.

- ExtPascal: rev.547
- ExtJS: v.3.0
- Compiler: Lazarus 0.9.29 
- OSes: Windows XP SP3 or Redhat Linux
- WebServer: Apache2
- Mode: FCGI

Original issue reported on code.google.com by luoca...@gmail.com on 2 Nov 2009 at 8:19

GoogleCodeExporter commented 9 years ago
Today,I test it again.
On ExtP Toolkit,it did not support Chinese character.
Only use ExtPascal,it support Chinese character.

Original comment by luoca...@gmail.com on 22 Dec 2009 at 2:59

GoogleCodeExporter commented 9 years ago
You tested using: 

Charset := 'utf-8'; // ??? It is the default

If not ok try other Charset.

Original comment by wanderla...@gmail.com on 22 Dec 2009 at 6:02

GoogleCodeExporter commented 9 years ago

Original comment by wanderla...@gmail.com on 22 Dec 2009 at 6:11

GoogleCodeExporter commented 9 years ago

Original comment by wanderla...@gmail.com on 22 Dec 2009 at 6:12

GoogleCodeExporter commented 9 years ago

Original comment by wanderla...@gmail.com on 6 Jan 2010 at 12:49

GoogleCodeExporter commented 9 years ago
Hi,on Lazarus(with ExtP Toolkit),use the unicode,after run,if will display 
Chinese.
procedure TMainWindow.ExtButton2Click;
begin
  ExtButton2.Text:=#20013#25991;
end;

Original comment by luoca...@gmail.com on 11 Jan 2010 at 3:50

GoogleCodeExporter commented 9 years ago
I tried(with ExtP Toolkit)
Charset := 'utf-8';

Charset := 'gbk';

Charset := 'gb2312';

all can't display Chinese.

Original comment by luoca...@gmail.com on 11 Jan 2010 at 5:27

GoogleCodeExporter commented 9 years ago
A same program,on Delphi,use Chinese string,run ok,and display Chinese 
character 
fine.

But on Lazarus,after run,it will garbled,not display fine.

view the HTML source,charset is utf-8
<meta http-equiv="content-type" content="charset=utf-8" />

Original comment by luoca...@gmail.com on 12 Jan 2010 at 3:39

GoogleCodeExporter commented 9 years ago
The Chinese string search from the MYSQL DB,it will dipslay fine

Original comment by luoca...@gmail.com on 12 Jan 2010 at 3:41

GoogleCodeExporter commented 9 years ago
I put the Chinese string into a text file.Load it in program.
and set
Charset := 'utf-8';

it work ok.
I think the reason is Lazarus support UTF-8,and delphi7 is AnsiString.

Original comment by luoca...@gmail.com on 12 Jan 2010 at 9:44

GoogleCodeExporter commented 9 years ago
On WindowsXP, this method is OK..
I put the Chinese string into a text file.Load it in program.
and set
Charset := 'utf-8';

it work ok.
I think the reason is Lazarus support UTF-8,and delphi7 is AnsiString.

But on Linux(RedHat),it did not work ok.
On Linux(Lazarus),direct use the Chinese character,it will work OK.maybe the OS 
diff.
such as
FieldLabel := '中文';//Chinese
it will ok.

Original comment by luoca...@gmail.com on 12 Jan 2010 at 10:31

GoogleCodeExporter commented 9 years ago

Original comment by wanderla...@gmail.com on 15 Jan 2010 at 4:47