Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

211
Visualizações
Malformed SQL string in Firebird with Laravel

I am working currently on a Laravel (Laravel version: 5.1.46 (LTS), PHP version: PHP 7.0.13) application that uses Firebird for database. I use iconv() to convert UTF-8 strings into Windows-1250 to save a record. Since about 2 days it stopped working.

iconv('UTF-8', 'WINDOWS-1250', 'ékezet');

This is the code I use to convert it and than pass it to the following SQL query:

\DB::select(\DB::raw("UPDATE CIKK_LEIRASOK SET LEIRAS = '$leiras' WHERE VONALKOD = " . $product->VONALKOD));

But something went wrong and I get the following error:

SQLSTATE[HY000]: General error: -104 Dynamic SQL Error SQL error code = -104 Malformed string (SQL: UPDATE CIKK_LEIRASOK SET LEIRAS = ' ?kezet ' WHERE VONALKOD = 1)

I googled about it but couldn't find anything and I have no clue what could be wrong.

Anyone more experienced in this subject?

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda