Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Varios (https://www.clubdelphi.com/foros/forumdisplay.php?f=11)
-   -   Caracteres Chino Delphi Xe2 (https://www.clubdelphi.com/foros/showthread.php?t=77963)

dison 09-03-2012 01:31:33

Caracteres Chino Delphi Xe2
 
Im getting chinese character in delphi XE2 楤潳䁮灤潳瑦慷敲⹳潣m

*I have this to fill a listbox*
listbox1.Items.AddObject( UpperCase(trim(FieldByName('name').AsString)) , TObject(LongInt(NewStr(trim(FieldByName('email').AsString)))) );

and this line to get the email despending of the ItemIndex

sValue:= PString(listbox1.Items.Objects[listbox1.ItemIndex])^ +','

In delphi 2010 ALL IS FINE but in XE2 svalue is 楤潳䁮灤潳瑦慷敲⹳潣m

Please help me
Thansk

egostar 09-03-2012 06:34:48

Dison

Intenta con esto: (Try this)

Código Delphi [-]
  sValue:= PAnsiChar( PString(listbox1.Items.Objects[listbox1.ItemIndex])^ +',' );

Saludos

CSIE 14-03-2012 09:22:29

Hi Dison,

text in the listbox is displayed correctly?

Regards.

CSIE 14-03-2012 09:38:05

See here: stackoverflow.com/questions/9459186/delphi-xe2-tdataset-does-not-support-unicode


La franja horaria es GMT +2. Ahora son las 08:21:08.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi