close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Strange Characters with iRite and universal email

Thread began 7/22/2011 4:41 am by scr298498 | Last modified 8/15/2011 10:19 pm by scr298498 | 3282 views | 12 replies |

scr298498

Strange Characters with iRite and universal email

Hey,

I have setup a system for my client to send newsletters and there is an issue with odd characters showing up in the emails. Like this for example: 'Consumer Price Index – May'.

I'm pretty sure it comes from pasting into iRite from word, but how can I make sure it doesn't show that way in emails?

In iRite everything shows fine when the client pastes the text in, but the text is stored in the DB with the weird characters. What can I do to sort this out?

Thanks!

Shane

Sign in to reply to this post

Ray BorduinWebAssist

This is probably due to the charset settings. There are up to four places the charset will need to be configured for this to work:

1) In the html in a meta tag to define the charset
2) In the database itself to define the database charset
3) In the database connection
4) In the email server behavior

You can search this forum and the web for examples of how and where to update those charsets. UTF8 is a very broad charset that should support most characters.

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

scr298498

Hi Ray,

Thanks. I have checked that the charset is set to UTF8 in all those instances but I still get problems. It seems that the only real culprit is double quotes that display as follows:
“Test Text”
Most others seem fine:
TEST CHARACTERS
 ` / ~ # , . ? : ; @ %^&*()!ӣ$%

I set the field in the database that holds the email content to utf8-bin - is that correct?

Thanks again for your time.

Sign in to reply to this post

Ray BorduinWebAssist

I'd have to take a look at the page to see if you properly updated it everywhere.

You can test to see if the database field is designated properly by adding that character to the database directly through phpMyAdmin or another database utility. If it is stored and retrieved correctly when adding it to the database directly, then you know your database field is configured properly.

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

scr298498

It seems the offending character is double quotes, but the directional ones(“”). I tried adding them directly to the DB using phpMyAdmin and they showed up fine.
I have attached the email sending page that has the Universal Email behavior set on it. The behavior is set to UTF8 as are the DB fields and UTF8 is set in the heads of all the pages involved. Is there an iRite setting somewhere I have missed?

Attached Files
newsletterSend_test.zip
Sign in to reply to this post

Ray BorduinWebAssist

Did you add the mysql_set_charset() to your connection? Let me see you connection file.

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

scr298498

No, I didn't. I've never encountered that so I'm not sure what to do. The connection file is attached.

Thanks again!

Attached Files
ucConn_.zip
Sign in to reply to this post

Ray BorduinWebAssist

Try adding this to the bottom of your connection code:

mysql_set_charset('utf8',$ucConn);
Sign in to reply to this post
Did this help? Tips are appreciated...

scr298498

Hi Ray,

I have tried that and the double quotes still display incorrectly.

Sign in to reply to this post

Ray BorduinWebAssist

Do they display correctly in the database when viewed directly from a database administration program like php myAdmin?

The problem may be how it is inserted and not how it is displayed. Make sure it appears correctly in the database first. If not, make sure you have all of the charset settings on the insert and update pages. Before trying to get it to display properly on the page you need to make sure it gets inserted properly to the database.

Sign in to reply to this post
Did this help? Tips are appreciated...
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...