Forum: Ruby on Rails [maybe ot] Special Characters in DB Fields

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Steve R. (Guest)
on 2006-04-16 01:10
(Received via mailing list)
I have MySQL on a Linux (RH) server and Mac OSX. I did a mysqldump on
Linux box and imported it into the database on the Mac. The following
is in one of the fields:

Maui�s Westin Ka�anapali

This is supposed to read

Maui's Westin Ka'anapali [note: straight quotes shown here are really

In fact, it renders properly when served up from the Linux box (Safari
client). Served up from the OSX box, it doesn't. All encoding is utf-8,
database, page, everything.

I even have the following in application.rb:

  before_filter :set_charset

  # ... stuff ...

  def set_charset
		@headers["Content-Type"] = "text/html; charset=utf-8"

Questions: Has anyone had this problem (or the related black diamond
with a
question mark); and is there a known cause/fix?

View this message in context:
Sent from the RubyOnRails Users forum at
This topic is locked and can not be replied to.