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 27-05-2019
cmfab cmfab is offline
Miembro
 
Registrado: jun 2010
Posts: 419
Poder: 14
cmfab Va por buen camino
Bueno, la verdad es que eso no lo tengo claro, estoy ejecutando una consulta de prueba desde Delphi con la sintaxis siguiente:

Código Delphi [-]
consPrueba.Close;
consPrueba.ParamByName('vCliente').Value := 'Jesús Alarcón';
consPrueba.ExecSQL;

Básicamente actualizo un registro con ese nombre, me parecía algo normal, pero desde Delphi tengo el problema, obviamente si lo hago dentro de un editor de SQLite dentro de la propia BD me escribe correctamente los caracteres.
Responder Con Cita
  #2  
Antiguo 28-05-2019
Avatar de roman
roman roman is offline
Moderador
 
Registrado: may 2003
Ubicación: Ciudad de México
Posts: 20.269
Poder: 10
roman Es un diamante en brutoroman Es un diamante en brutoroman Es un diamante en bruto
¿Qué versión de Delphi usas?

// Saludos
Responder Con Cita
  #3  
Antiguo 28-05-2019
cmfab cmfab is offline
Miembro
 
Registrado: jun 2010
Posts: 419
Poder: 14
cmfab Va por buen camino
10.2 Tokyo
Responder Con Cita
  #4  
Antiguo 28-05-2019
Avatar de Casimiro Notevi
Casimiro Notevi Casimiro Notevi is offline
Moderador
 
Registrado: sep 2004
Ubicación: En algún lugar.
Posts: 32.044
Poder: 10
Casimiro Notevi Tiene un aura espectacularCasimiro Notevi Tiene un aura espectacular
Comprueba qué "encoding" tiene.


PRAGMA encoding;
PRAGMA encoding = "UTF-8";
PRAGMA encoding = "UTF-16";
PRAGMA encoding = "UTF-16le";
PRAGMA encoding = "UTF-16be";

In first form, if the main database has already been created, then this pragma returns the text encoding used by the main database, one of "UTF-8", "UTF-16le" (little-endian UTF-16 encoding) or "UTF-16be" (big-endian UTF-16 encoding). If the main database has not already been created, then the value returned is the text encoding that will be used to create the main database, if it is created by this session.
The second through fifth forms of this pragma set the encoding that the main database will be created with if it is created by this session. The string "UTF-16" is interpreted as "UTF-16 encoding using native machine byte-ordering". It is not possible to change the text encoding of a database after it has been created and any attempt to do so will be silently ignored.
Once an encoding has been set for a database, it cannot be changed.
Databases created by the ATTACH command always use the same encoding as the main database. An attempt to ATTACH a database with a different text encoding from the "main" database will fail.
Responder Con Cita
  #5  
Antiguo 28-05-2019
cmfab cmfab is offline
Miembro
 
Registrado: jun 2010
Posts: 419
Poder: 14
cmfab Va por buen camino
El pragma de la base es UTF-8
Responder Con Cita
  #6  
Antiguo 28-05-2019
cmfab cmfab is offline
Miembro
 
Registrado: jun 2010
Posts: 419
Poder: 14
cmfab Va por buen camino
Rectifico, el econding que devuelve el PRAGMA es UTF-8
Responder Con Cita
  #7  
Antiguo 29-05-2019
Avatar de Casimiro Notevi
Casimiro Notevi Casimiro Notevi is offline
Moderador
 
Registrado: sep 2004
Ubicación: En algún lugar.
Posts: 32.044
Poder: 10
Casimiro Notevi Tiene un aura espectacularCasimiro Notevi Tiene un aura espectacular
Pues entonces, por algún motivo, estás enviando texto que no es utf8 a la base de datos.
¿Has probado desde un software externo? (sqlite studio admin, sqliteman, etc.?
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
Lazarus: TStringList.LoadFromFile error cuando la ruta tiene eñes/acentos euMesmo Lazarus, FreePascal, Kylix, etc. 12 07-03-2015 00:19:38
problema con eñes y tildes jarto MySQL 1 28-04-2005 15:01:47
Acentos y eñes llonigualker Varios 3 20-11-2004 14:25:35
UPPER, UpperCase con eñes, tildes ... Tomás Firebird e Interbase 3 15-01-2004 18:24:24
Ordernar a acentos y eñes (tablas dbase) Jose_Pérez SQL 2 17-11-2003 15:49:20


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


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