![]() |
Problems with some chars on a DB insert - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Problems with some chars on a DB insert (/showthread.php?tid=6808) |
Problems with some chars on a DB insert - El Forum - 03-12-2008 [eluser]Isern Palaus[/eluser] Hello, I'm getting this error: Quote:An Error Was Encountered If I delete the accents on the letters like í to i works fine. How can I fix them? Thanks in advance, -- Isern Palaus Problems with some chars on a DB insert - El Forum - 03-12-2008 [eluser]mironcho[/eluser] Hi Isern, Given error message says "Data too long for column ‘body’ at row 1" - what type, size and collation is this field 'body'? Problems with some chars on a DB insert - El Forum - 03-12-2008 [eluser]mikeyhell[/eluser] This is a known bug(we'll not really bug w/ mysql) but issue with sql code written on an xp machine or some flavors of linux. I had the same problem a while back and found that for some reason my sql had to be encoded using latin1 instead of utf8. What are you using to edit the code? Problems with some chars on a DB insert - El Forum - 03-12-2008 [eluser]mikeyhell[/eluser] btw mironcho, your avatar pic looks very similar to an area I frequently mtb at. Wasn't taken at palo duro canyon was it? Problems with some chars on a DB insert - El Forum - 03-12-2008 [eluser]mironcho[/eluser] [quote author="mikeyhell" date="1205389666"]btw mironcho, your avatar pic looks very similar to an area I frequently mtb at. Wasn't taken at palo duro canyon was it?[/quote] No - it was taken in one park in Sofia, Bulgaria ![]() Problems with some chars on a DB insert - El Forum - 04-08-2008 [eluser]Isern Palaus[/eluser] Hey, Sorry for not responding. I'm using this table: Code: CREATE TABLE `posts` ( In latin1. :S Thank you in advance, -- Isern Palaus |