close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Values with special characters not shown

Thread began 2/23/2015 5:15 am by info4753 | Last modified 8/10/2015 11:43 am by Ray Borduin | 2310 views | 9 replies |

info4753

Values with special characters not shown

When I run a test on a database query with records that have special characters like éàèé then the field values are not shown. Please see the attached screenshot.

Sign in to reply to this post

Jason ByrnesWebAssist

This is a DW issue. it occurs with a native DW Recordset as well. The dialog window that we use for showing the test results is the same one used by the Native DW recordset.

As long as you use the correct character set in the MySQLi connection, i believe latin 1, the data will show on your page fine.

Sign in to reply to this post

info4753

Thanks Jason.

If I have an older database with ISO data and need to convert them on the page to UTF8, how do I have to do this? Until now I did it inside the connection string using the following lines:

...
mysql_query("SET CHARACTER SET UTF8", $mydb_db);
mysql_query("SET NAMES UTF8", $mydb_db);

Sign in to reply to this post

Jason ByrnesWebAssist

in the MySQLi dynamic connection, you can select the character set to use for the connection.

Sign in to reply to this post

info4753

Great, thanks Jason.

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

Sweens

Hi Jason

I think I have an issue related to this; I have converted most of a site to use mysql_i and all the pages that use this connection display properly. However, pages which use the 'old' connection script do not display properly in Spanish - (or presumably other languages where accents etc are used) - despite the same data from the database being retrieved on the different pages.

I assume this must be a character set issue and am not sure how to set the charset as utf8 in the 'old' connection file.

Currently this is:

<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_connRoSite = "localhost";
$database_connRoSite = "stname";
$username_connRoSite = "uname";
$password_connRoSite = "pwd";
$connRoSite = mysql_pconnect($hostname_connRoSite, $username_connRoSite, $password_connRoSite) or trigger_error(mysql_error(),E_USER_ERROR);
?>

Any help much appreciated

Cheers
Chris

Sign in to reply to this post

Ray BorduinWebAssist

Delete that connection file and create a new connection file with the webassist "Dynamic Connection" using the same name.

It gives the option to set the charset in the user interface.

Sign in to reply to this post
Did this help? Tips are appreciated...

Sweens

Thanks Ray - however, I think my setup might be corrupt* in some way, as the + and - buttons on the Databases properties panel are greyed out - is there a different way of initiating things?

(* I've wondered about this fr some time, as often existing recordsets are hidden in the bindings panel until I go to create a new one, then they reappear)

Cheers
Chris

Sign in to reply to this post

Sweens

Hi Ray

Jut to let you know that after a reboot, the databases panel + and - were no longer greyed out and your solution worked a treat!

many thanks

Chris
(Given all the issues with installing DW 2015, I might just uninstall everything and start from scratch!)

Sign in to reply to this post
loading

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