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
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

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   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.

×
×
  • 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.