close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Issue with Characters not saving to database

Thread began 9/13/2010 3:32 pm by sam308940 | Last modified 9/21/2010 9:18 am by Jason Byrnes | 1222 views | 3 replies |

sam308940

Issue with Characters not saving to database

Sometimes we get international orders and they use characters that have accent marks in the personalization of the item. It gets saved to the database as something like:

Merci pour votre présence, vos sourires, vos délicates attentions.
Nous y avons été très sensibles .
Grâce a vous cette journée restera à jamais gravée dans nos coeurs.


Does anyone know how I can get this to save to the database as the characters that were intended to be used?

Thanks
Sam

Sign in to reply to this post

Jason ByrnesWebAssist

this has to do with the collation being used for the table in the database

You should edit the database and make sure the tables collation os set to UTF8


you may also want to set the connection to utf8.

In the connection file after the last line add:

mysql_set_charset('utf8',$<yourConnectionName>);

where <yourConnectionName> is the name of your connection

Sign in to reply to this post

sam308940

Hi Jason

Thanks for responding. Your response got me going in the right direction.
I resolved this.
Im updating this for anyone in the future with this issue.

I had all the collation right.
what ended up being the problem was so easy - but completely missed.
dreamweaver by default had used this in every page:
<meta http-equiv="Content-Type" content="text/html"; charset="iso-8859-1">
and i just changed that to
<meta http-equiv="Content-Type" content="text/html"; charset="utf-8">

AND
digging deeper, on any update/edit pages, every "binding" of fields to form elements had this same character set tagged. So i had to change that too.

as soon as i changed this it was fixed.

sam

Sign in to reply to this post

Jason ByrnesWebAssist

excellent, glad to hear it is 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...