Displaying 2 results from an estimated 2 matches for "force_utf8".
2006 Aug 03
1
routeset mapper problem
...to the Rails Routset
class ActionController::Routing::RouteSet
  def content_root( path, options={} )
    opts = {
      :index      => '''',
      :layout     => ''content'',
      :use_cache  => ''true'',
      :cache_path => nil,
      :force_utf8 => Comatose::Options.force_utf8.to_s,
      :named_route=> nil
    }.merge(options)
    # Ensure the controller is aware of the mount point...
    ContentController.add_root(path, opts[:index])
    # Add the route...
    opts[:controller] = ''content''
    opts[:action] ='...
2011 Jun 17
7
Encoding
What''s a good solution for fixing character encoding problems for
compatibility between ascii and utf-8?  The database is postgres and
is encoded in utf-8.
Once in awhile there will be a compatibility error from strings from a
webform.
Is there a command to fix this besides using
a_string.force_encoding(''utf-8'')?  Even this doesn''t seem to always
work either.