Welcome Guest, Not a member yet? Register   Sign In
Strange error with strings
#1

[eluser]Sein Kraft[/eluser]
Hi everybody, i have a strange problem and i can't locate a solution.

When i save a string to the databade using CI its cutted if it contanis an accent.

Example:
Input String: 'Nicolás'
Saved String: 'Nicol'

It save all text until appears the accent.

Database encoding: 'utf8_general_ci'

Sorry my poor english.
#2

[eluser]TheFuzzy0ne[/eluser]
Are you absolutely certain that the whole table (including all fields) is the same encoding?
#3

[eluser]NogDog[/eluser]
Another thing to consider is that a UTF-8 string may often require more bytes to store than its number of characters, as some of those characters may require 2 or 3 bytes each.

Also, it may help to make sure in that in the database config file you have specified UTF-8 (I believe this is the default, so probably not an issue):
Code:
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_general_ci";




Theme © iAndrew 2016 - Forum software by © MyBB