close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

character encoding with mysqli

Thread began 8/03/2016 7:24 am by Sweens | Last modified 8/03/2016 1:31 pm by Ray Borduin | 970 views | 6 replies |

Sweens

character encoding with mysqli

Hi

I'm having a strange encoding issue. Everything is set to utf-8 (the database, fields, web pages etc) but on

http://121t.co.uk/booking-and-availability.html you can see that the pound sign is not displaying properly. This page uses mysql_i

whereas the same info but on a test mysql connection displays properly:

http://121t.co.uk/Detail.php?pg_id=10

I've tried deleting anything different on the mysql_i page, but can't find anything that makes a difference!

Any help much appreciated, as always

Chris

Sign in to reply to this post

Ray BorduinWebAssist

Can I get a copy of the two connection files? I'm thinking the connection itself has different encoding.

Sign in to reply to this post

Sweens

Thanks Ray

pm

Sign in to reply to this post

Sweens

Hi Ray

I've deleted the last line from the mysql_i connection script, and all works properly now!
Cheers
Chris

Sign in to reply to this post

Ray BorduinWebAssist

That probably means the charset specified in the mysql database itself is not utf-8

Sign in to reply to this post

Sweens

Hi Ray

Haven't checked that - but I restored the last line and change the utf8 part to utf-8 and it also now works

set_charset('utf-8');

Don't know if it's ignoring this line because it's invalid, therefore it's treated like it's not there!

Still googling how to find the db characterset!

Thanks
Chris

Sign in to reply to this post

Ray BorduinWebAssist

That is the mysql version and not the mysqli version of the charset code. If you did restore the last line it would have looked like:

$conn121_i->set_charset('utf-8');

So yes, that line is essentially ignored... and 'utf8' is the correct syntax.

Like I said earlier, that should match the charset specified in your mysql database itself and you probably aren't using utf8 there.

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