Jump to content

[SOLVED] £ sign problems


surfsup

Recommended Posts

Never come across this before but

 

I have simple form that submits text to a MySql database - The £ sign is being entered

into the database as  � .I can't seem to see why. I have tried rectifying the problem when I display the data with str replace to no avail.

 

Any help appreciated (perhaps this should have gone n the My Sql forum but hey

Link to comment
https://forums.phpfreaks.com/topic/70040-solved-%C2%A3-sign-problems/
Share on other sites

Pardon my ignorance. A little bit of a novice here.. Right well the mysql_real_escape_string does a good deal as you say . However the one thing it doesn't seem to to effect is this  �

 

The second point I can't quite work out what to do here. I have tried attaching the SendStringParametersAsUnicode=true in the connection string but it is giving me errors

 

 

<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_Surgical = "IP";
$database_Surgical = "DB";
$username_Surgical = "US";
$password_Surgical = "PS";
SendStringParametersAsUnicode=true;
$Surgical = mysql_pconnect($hostname_Surgical, $username_Surgical, $password_Surgical) or trigger_error(mysql_error(),E_USER_ERROR); 

?>

 

 

Could this be that I am inputting the information into a long text field

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.