close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


display of non english characters

Thread began 9/09/2011 6:12 am by CraigR | Last modified 9/09/2011 2:09 pm by CraigR | 838 views | 2 replies |

CraigRBeta Tester

display of non english characters

in my pursuit of a multi-language site, some of my text is static and is presented to my php page via an includes file, and some text is retrieved from the database.

on my local testing server, both appear as normal, but on my client site, the static text appears fine, but the database text is not.

My php page is encoded as utf-8 and so is the database field.

Viewing the database table in each instance via phpmyadmin shows the text correctly

On the image, the menu text (with the blue background) appears fine.

I have been reading up about the activation of multibyte strings in php.ini.

I know this is active on my machine, could this be a reason why the static text is ok and database provided text is not, or is this throwing me off the scent ?

Sign in to reply to this post

Jason ByrnesWebAssist

most likely, you just need to set the character set to be used for the Database connection.

in the database connections file, add the following code at the end:

<?php if (!function_exists('mysql_set_charset')) {

mysql_set_charset($charset$link_identifier null)
         if (
$link_identifier == null) {
mysql_query('SET NAMES "'.$charset.'"');
         } else {
mysql_query('SET NAMES "'.$charset.'"'$link_identifier);


where <yourConnectionName> is the name of your connection file.

Sign in to reply to this post

CraigRBeta Tester

Fantastic !!

Been going around in circles with this.

That fixed it.

Friday night now, and you just helped make the weekend.

Thanks Jason

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





Ease of use


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