Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Grupo de Teaming del ClubDelphi

Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 09-03-2012
dison dison is offline
Miembro
 
Registrado: nov 2004
Posts: 30
Poder: 0
dison Va por buen camino
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
Responder Con Cita
  #2  
Antiguo 09-03-2012
[egostar] egostar is offline
Registrado
 
Registrado: feb 2006
Posts: 6.557
Poder: 25
egostar Va camino a la fama
Dison

Intenta con esto: (Try this)

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

Saludos

Última edición por egostar fecha: 12-08-2013 a las 17:06:09.
Responder Con Cita
  #3  
Antiguo 14-03-2012
CSIE CSIE is offline
Miembro
 
Registrado: feb 2008
Ubicación: Universo paralelo
Posts: 69
Poder: 17
CSIE Va por buen camino
Hi Dison,

text in the listbox is displayed correctly?

Regards.
Responder Con Cita
  #4  
Antiguo 14-03-2012
CSIE CSIE is offline
Miembro
 
Registrado: feb 2008
Ubicación: Universo paralelo
Posts: 69
Poder: 17
CSIE Va por buen camino
See here: stackoverflow.com/questions/9459186/delphi-xe2-tdataset-does-not-support-unicode
Responder Con Cita
Respuesta



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
chino-unicode-tnt adrianallende Varios 0 11-10-2005 18:11:45
Uso del Chino en MS Word andres1569 Windows 2 19-11-2004 18:13:58
chino en interbase jsb Firebird e Interbase 0 02-09-2003 19:05:05


La franja horaria es GMT +2. Ahora son las 23:17:20.


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
Copyright 1996-2007 Club Delphi