Welcome Guest, Not a member yet? Register   Sign In
Unknown character in string problem (just like squre with a question mark)
#1

[eluser]aruntvla[/eluser]
cocina (con electrodom�sticos)


this string is not fully inserting in to database..there is a symbol after m..how i insert it in to database

Code:
$new_curinfo = mysql_real_escape_string(htmlspecialchars(addslashes($data[2])));
         $new_curinfo =  iconv('Windows-1252', 'ASCII//TRANSLIT//IGNORE', $new_curinfo);
         $result = db_query("UPDATE content_type_propiedad SET field_prop_tipo_value = '$new_curinfo' WHERE vid='$count_new'");

This code working in localhost, and it convert that symbol to '?' but it showing error in server...is there any other method to remove that one....reply please
#2

[eluser]n0xie[/eluser]
1. Use AR instead of building your own queries
2. Use UTF-8




Theme © iAndrew 2016 - Forum software by © MyBB