Jump to content

Sql Query


Elton

Recommended Posts

UPDATE Articles SET body = replace(body, 'Ã\‚£', '£');

 

Using the code above, Ã\‚£ now becomes ?, not £.

 

Anyone know why? It's in a UTF8 mysql db.

Anglers' Net Shopping Partners - Please Support Your Forum

CLICK HERE for all your Amazon purchases - books, photography equipment, DVD's and more!

CLICK HERE for Go Outdoors. HUGE discounts!

 

FOLLOW ANGLERS' NET ON TWITTER- CLICK HERE - @anglersnet

PLEASE 'LIKE' US ON FACEBOOK - CLICK HERE

Link to comment
Share on other sites

Had an idea - back soon :)

Anglers' Net Shopping Partners - Please Support Your Forum

CLICK HERE for all your Amazon purchases - books, photography equipment, DVD's and more!

CLICK HERE for Go Outdoors. HUGE discounts!

 

FOLLOW ANGLERS' NET ON TWITTER- CLICK HERE - @anglersnet

PLEASE 'LIKE' US ON FACEBOOK - CLICK HERE

Link to comment
Share on other sites

Balls.They show as £ in the database, but ? on screen.Any ideas?Hmmmm...Will try:£

Anglers' Net Shopping Partners - Please Support Your Forum

CLICK HERE for all your Amazon purchases - books, photography equipment, DVD's and more!

CLICK HERE for Go Outdoors. HUGE discounts!

 

FOLLOW ANGLERS' NET ON TWITTER- CLICK HERE - @anglersnet

PLEASE 'LIKE' US ON FACEBOOK - CLICK HERE

Link to comment
Share on other sites

UPDATE Articles SET body = replace(body, 'Ã\‚£', '£');

 

That worked.

 

Cool :)

Anglers' Net Shopping Partners - Please Support Your Forum

CLICK HERE for all your Amazon purchases - books, photography equipment, DVD's and more!

CLICK HERE for Go Outdoors. HUGE discounts!

 

FOLLOW ANGLERS' NET ON TWITTER- CLICK HERE - @anglersnet

PLEASE 'LIKE' US ON FACEBOOK - CLICK HERE

Link to comment
Share on other sites

nice one Elton you set the question and only you reply 3 times with the answer :rolleyes::bigemo_harabe_net-163::bigemo_harabe_net-193:

cpranim.gif

15/06/12 PB Perch 3 lb 10 oz 03/03/11 Common Carp 23lb 6 oz 05/06/12 Sturgeon 7 lb 13 oz 06/06/12 Mirror Carp 21 lb 2 oz

09/03/13 PB PIKE 27 lb 9 ozARNO3010CustomImage1086535.gif

 

 

 

Link to comment
Share on other sites

probably didnt work because the document coding wasnt set as utf 8, even though database is.

 

default html output will be iso

 

<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />

Edited by Andy_1984

Owner of Tacklesack.co.uk


Moderator at The-Pikers-Pit.co.uk

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We and our partners use cookies on our website to give you the most relevant experience by remembering your preferences, repeat visits and to show you personalised advertisements. By clicking “I Agree”, you consent to the use of ALL the cookies. However, you may visit Cookie Settings to provide a controlled consent.