Jump to content
  • 0
Sign in to follow this  
Psyz

chatlog error special characters

Question

[SQL]: DB error - Incorrect string value: '\xE1' for column 'message' at row 1
[Debug]: at log.c:422 - INSERT DELAYED INTO `chatlog` (`time`, `type`, `type_id`, `src_charid`, `src_accountid`, `src_map`, `src_map_x`, `src_map_y`, `dst_charname`, `message`) VALUES (NOW(), 'O', '0', '165109', '2000000', 'prontera', '100', '178', ?, ?)

I'm getting sql error, I already changed the encoding in the table to accept more than 4bits, but it still persists

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

with codepages is hard. if you had already db and tables in wrong codepage, you may need change codepage for database for table and for column. or for all of them

depend how codepages used in your tables.

 

also need select codepage with 8 bits without validation. some codepages even if it's 8 bits, will throw errors on wrong chars.

 

Share this post


Link to post
Share on other sites
  • 0
11 hours ago, 4144 said:

com codepages é difícil. se você já tinha banco de dados e tabelas na página de código errada, pode ser necessário alterar a página de código do banco de dados para a tabela e para a coluna. ou para todos eles

depende de como as páginas de código são usadas em suas tabelas.

 

também precisa selecionar a página de código com 8 bits sem validação. algumas páginas de código, mesmo que sejam de 8 bits, irão lançar erros em caracteres errados.

 

I did not perform any editing in the database.

the tables are also those of Hercules himself.

 

these characters are from the portuguese language (Brazil) in this case are accents (é, ão, você)

Share this post


Link to post
Share on other sites
  • 0

hercules script not set locale for db, and hercules code not set it. this mean locale/codepage used default from your mysql server. and probably default is not what you want

because this need or change mysql config or/and change locale/codepage in db, tables etc

 

 

Share this post


Link to post
Share on other sites
  • 0

try change charset in database property, in table propery and each columns

 

also probably better set some good charset in mysql.conf or mariadb.conf (depend what sql software you using)

 

If you not sure what charset to set, try utf8mb4 or utf8mb4_general_ci. it should support any languages

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.