Responding to Negative Online Feedback

Posted: August 28th, 2011
 

Google Places RatingMany major websites now provide areas for users to comment on products and services being sold. Added to this, Google allows users to comment on companies through their Places page and import comments from other popular sites, all of which end up showing up in their search results. As a consumer, this can be very helpful in making a purchase or choosing a certain company who provides a service. As a company, this can be great, until you receive a negative comment.

Here are some tips for dealing with negative online feedback:

  1. If there is a mechanism to respond to the comment, do so and respond honestly. If you refunded the customer, explain this in the response. If the customer is just venting, respond honestly and in a positive tone to the events that happened. Web users are more and more accustom to seeing feedback and they realize that not everyone can be satisfied. If you are honest and you maintain a positive tone to your response, people who view this feedback will recognize that.
  2. Ask some of your best and frequent customers to leave positive feedback about your company. It won’t look so bad if you have 50 positive comments compared to a single negative one.
  3. If the negative comment is abusive, threatening, or contains profanity, report the comment to the website administrators. Chances are they will remove it. If the comment is just “unfair”, don’t assume it will be removed from the website. It doesn’t hurt to ask but, again, take a positive tone in your email to the website operator and explain the situation honestly.

The Best Offense is a Good Defense

Encouraging customer comments on industry specific sites and in common web directories, such as Google Places, should be part of your online marketing strategy. Staying on the offence by doing a bit of work on this each month and getting positive feedback can save you a lot of hassle in the long run when you do get a negative feedback.

In addition, Google displays its comments in their search results and there is no doubt that positive and negative feedback on your company factors into search engine optimization. With this in mind, include online comments and feedback as part of your online strategy before somebody leaves you a negative response and you find yourself behind the 8-ball.

 

Dealing with UTF-8 Character Encoding In PHP and MySQL

Posted: August 25th, 2011
 

The other week, a colleague of mine sent an interesting article about UTF8 encoding through the web stack. The post talks about how you have to force each part of your web application and software into UTF8 as they fight to default to their own default encodings. Most of the time, we think that setting the charset of our tables to UTF8 in the database and then declaring the HTML document as a ecoded in UTF8 is enough, however you should also specify that data transferred between your application and the database is also encoded as UTF8.

Here’s a summary of the points to be aware of:

1. Code Editor Preferences – Make sure the code editor that you are using is opening and saving your code files in UTF8. A lot of editors default to native Windows or Mac encoding, which can cause characters to appear differently.

2. Create MySQL Tables set to charset=utf8 and to collate=utf8_unicode_ci – MySQL by default collates to Latin1 so you will have to define both the charset and collate when you create your tables.

3. Tell MySQL that .sql File is UTF8 – If you are using the SQL pane in something like PHPMyAdmin, you may not have to worry about this step, however if you are using MySQL’s command line or a different 3rd party MySQL client, you have to tell MySQL that the .sql file is encoded in UTF8. If you don’t tell MySQL the .sql file is UTF8, it will default back to Latin1 and corrupt your data. For a command line example, refer to rentzsch’s post.

4. Exporting Tables – If you’re transferring tables between two databases, make sure to set the default-character-set=utf8 when using mysqldump.

5. Specify the Database Connection in your Application – A lot of developers forget to include a line of code to tell their web application to connect to the database using the UTF8 encoding. In PHP, you can use the mysql_set_charset functions like:

$link = mysql_connect('localhost','username','password',TRUE);
mysql_set_charset('utf8',$link);

6. Specify Encoding in HTTP Headers – Include some PHP code at the top of your application to specify the HTTP Headers:

header('Content-Type: text/html; charset=utf-8');

7. Specify Encoding in HTML – Include a Meta tag in the <head></head> of your HTML documents that defines the encoding as UTF8:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

8. Specify Encoding in HTML Forms – If your application is using forms that Insert or Update data in the database, you should also specify accept-charset=”UTF-8” in the form tag:

<form name="webform" method="post" action="formscript.php" accept-charset="UTF-8">

Dealing with character encodings can be a very tricky, especially if your web application uses different languages with different character sets (ie. Japanese), however if you ensure your encoding is set in each step, it can save you a lot of headaches down the road.

Thanks to rentzsch for their informative post on How To Use UTF-8 Throughout Your Web Stack.