close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

incorrect encoding of £ symbol.

Thread began 7/19/2010 3:08 pm by CraigR | Last modified 7/19/2010 4:25 pm by Jason Byrnes | 755 views | 5 replies |

CraigRBeta Tester

incorrect encoding of £ symbol.

Not sure where to put this, as although occuring in ecart, it isn't an ecart problem.

i have manipulated a few coupons to retreive various options from a database.

On adding 'saddle' as the voucher code, when a particular item is in the cart, a £25 discount is added.
The cart display object retrieves the text string from the database and displays it in discounts, when the code is entered, however the £ sign is not displayed propely. (it seems to work with $).

I have changed my table so that the data is utf8, but still no joy.
link to test page...

productdetail.php?ItemType=4&Item=54

just click on the add to cart button and type 'saddle' in the voucher box

Sign in to reply to this post

Jason ByrnesWebAssist

does it show the pound sign correctly in the database?


if so, try adding the following at line 1 of your page:

php:
<?php

ini_set
('default_charset''utf-8');
?>
Sign in to reply to this post

CraigRBeta Tester

hi Jason.

Yes, the £ is fine in the database.

I already have <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> in the head of my page.

I added the line you suggested, but this seems to make no difference.

Sign in to reply to this post

Jason ByrnesWebAssist

try adding that into the eCart coart object php file as well.


you may also need to set the client connection being used by php.

open the connection file in the connections folder, and find the last line, it will look like:

php:
$<Connection Name> = mysql_pconnect($hostname_<Connection Name>, $username_<Connection Name>, $password_<Connection Name>) or trigger_error(mysql_error(),E_USER_ERROR);



where <Connection Name> is the name of the connection, add the following to the next line:

php:
mysql_set_charset('utf8', $<Connection Name>);
Sign in to reply to this post

CraigRBeta Tester

Hi Jason.

The edit to the database connection file works ! (at least on my local server).

Any more issues, I'll let you know.

Many thanks

--update, works on live server in testing area too ! :-)

Sign in to reply to this post

Jason ByrnesWebAssist

awesome, glad to hear it's working.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...