Displaying 20 results from an estimated 500 matches similar to: "MySQL connection collation"
2010 Sep 20
5
Update to website not printing special Characters
I thought you might be interested in how far I have got with solving
my problem with MySql(via phpMyAdmin) to website character_set
problems.
I thought I had solved the problem when my characters on my website
started showing the special characters.
This was a partial success though.
When I went back to phpMyAdmin and entered new text the problem was
the same, but reversed. What now happens is
2008 Jan 21
1
Mysql collations error
Hello,
I am having this mysql error in my ruby on rails application.
ActiveRecord::StatementInvalid occurred in
> event#lg:
> Mysql::Error: Illegal mix of collations
> (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for
> operation ''='': select * from locations where country = ''HU'' and
> geo_state = ''08'' and city
2009 Oct 22
11
UFT8 String looks great in MySql, garbage in browser
Hi,
I have some seed data in MySql which contains non-ASCII characters (as
you''d imagine as these are worldwide placenames that I''m storing). In
MySql on the command line they look great, they''re all formatted
perfectly, including Arabic and Chinese characters and they look great.
However, when I ask my Rails model for one of these fields, and render
that in the
2014 Sep 30
2
home from SQL
Currently I'm using
user_query = SELECT 1000 AS uid, 1000 AS gid, '/srv/vmail/%2.256Hu/%Lu' AS home, ...
so I'm hashing based on %u (basically). But in my SQL db I have a
"unique_identifier" field, which never changes, even when the user is
changing his/her email address (due to marriage or the like).
What I'd really like to do is to use %u to find the value of the
2012 Jun 04
3
Using UTF8 under mysql in Centos6
Hi all,
I am trying to configure utf8 in mysql under centos6 to display
special characters, like accents. I use this mysql instance to store
plain syslog logs. I have configured this under my.cnf:
[mysqld]
init_connect = 'SET collation_connection = utf8_general_ci'
init_connect = 'SET NAMES utf8'
character-set-server = utf8
collation-server = utf8_general_ci
[client]
Mysql::Error: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE)
2009 Aug 04
0
Mysql::Error: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE)
Hi, I''ve got an error when I upload a record by iPhone with Chinese
character.
Processing ScoresController#create (for 123.204.56.133 at 2009-08-04
16:19:52) [POST]
Parameters: {"score"=>{"score"=>"79.60", "player_name"=>"δΈ€",
"iphone_identifier"=>"6b194f783d645ba1a7c30c0e31b1b67300eb0a25"},
2007 Jan 26
1
rake test:x recreates tables in MySQL with server (not database) charset and collation
Any thoughts on how to avoid this problem? Already tried:
1. Setting the charset and collation in migration 001 - no effect:
def self.up
db_name = ActiveRecord::Base::connection.current_database()
execute "ALTER DATABASE #{db_name} CHARACTER SET utf8 COLLATE
utf8_bin"
end
2. Setting the charset and collation on each table individually - no
effect:
2006 Sep 12
2
Generate JS from RoR - strange delay with send_data
Hi!
I need to generate some JS from Ruby. This is no AJAX related stuff so
RJS templates are not help to me. Also I want to not mix JS with HTML,
so putting JS in .rhtml templates is no go for me.
Currently I made some action in controller, prepared JS code and I''m
sending it via send_data as ''text/javascript''. In .rhtml templates I use
<script> tag with src
2009 May 26
6
dump and import MySQL table w/ accents
I am switching to a composite primary key (string and user ID) from the Rails
conventional auto-incrementing integer primary ID. The table is large (2.5
million records) and I''d rather not discard the contents. The
composite_primary_key gem doesn''t appear to support altering the table with a
migration to do its magic, only creating a table from scratch. So I dumped
the table
2008 Oct 24
4
AR object return nil on save
Hi!
I''m upgrading existing app from Rails 1.2.6 to 2.1.2. I have
encountered following problem with AR objects.
Model definition did not change and with 1.2.6:
params={}
params[:flight] = "1111"
params[:airline] = "Air France"
params[:luggage] = 0
r=Reservation.new params
r.save
is working code, new Reservation. With the same dataset, changing only
2007 Apr 23
3
Troubles with using gems in Rails
Hi!
I''m observing some problems using gem inside Rails. My understanding is
that after following sequence in irb:
$ irb
irb(main):001:0> require ''rubygems''
=> true
irb(main):002:0> require ''active_record''
=> true
irb(main):003:0> gem ''acts_as_taggable''
=> true
I should have access to acts_as_tagable mixins, like:
2009 Sep 24
13
Rails Authentication Tutorial
Does anyone know a good authentication tutorial they can suggest? I''ve
tried several restful authentication ones and an authlogic one on
RailsCast. But with each one I try, something seems to be missing in
the tutorial and I can''t get it to work. I''m new to Rails so it''s
possible user error on my part.
I''m on Mac OS X 10.5 and I generate all my apps in
2006 Mar 02
2
Different Collation (utf8_slovak_ci, utf8_danish_ci, latin1_german1_ci) etc.
One issue left for me to figure out is that in different languages there are
different characters and Xapian takes only english characters.
Thefore many word entered by users that contains their own language special
characters will not return any result. MySQL offers different collations ...
Now when I see how much data Xapian can search perhaps I could expand my
index spider different European
2013 Jun 12
0
Best way to set database connection collation in rails?
Hello, I want to change the connection collation that rails uses but I''m
unsure of exactly what the best way to do this is. Everything in MySQL -
the server, database and all tables are set to utf8_unicode_ci collation,
but the connection collation in rails still appears to be utf8_general_ci
(the default?). We are using the mysql2 adapter.
I''ve seen a couple of possible
2007 Sep 02
21
ferret for professionals
Hello,
I''m trying to setup ferret search engine(what i did successfully for
searching english phrases, words)
But i doesn''t work for UTF-8 symbols!!!
I tried to find the solution for this problem:
1) i add to enviroment.rb followinf lines:
ENV[''LANG''] = ''de_DE.UTF-8 at euro''
ENV[''LC_TIME''] = ''C''
2007 Aug 22
2
Sanitize my params and the create method
If I call .create on the param structure, are the parameters being
passed to the create method automatically sanitized for me?
e.g. Journalentry.create(param[:journalentry])
Do I have to worry about any malicious scripting making its way into the
creation of the record?
Thanks.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this
2013 Aug 28
1
State of Unicode collation support in FreeBSD?
[crossposted to -stable and -i18n, replies directed to -stable]
Hi everyone,
could someone point me to infos regarding Unicode collation support in FreeBSD?
All I could find was https://wiki.freebsd.org/KonradJankowski/Collation but
that page has not been changed in more than two years. Looking at sources of
-current it doesn't look like those changes made it into the source tree yet.
2010 Aug 18
1
Automatically retrieve correct collation
Dear List,
consider the following scenario:
setClass(Class = "A", representation = representation(B = "B", C = "C"))
setClass(Class = "B", representation = representation(C = "C"))
setClass(Class = "C", representation = representation(something =
"character"))
Obviously, the collation for sourcing these defs needs to be: C,
2009 Jul 12
3
Installing mysql with macports
Not sure if this is off topic, but there doesn''t seem to be an obvious
place to ask this question.
I am trying to use MacPorts to install mysql. I have xcode 3.0 and
x11 XQuartz 2.1.6 installed.
$PATH:
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/
local/bin:/usr/X11/bi
When I sudo port install mysql5-server
I receive:
---> Configuring mysql5
Error: Target
2006 Mar 17
2
collation order
The following caused a hard-to-diagnose problem for a user of the survey
package. Presumably this is a strange Unicode thing, but is there a
convenient reference for how the collation order is determined? I am
surprised that adding the same character to the end of two strings of the
same length can change the sorting order.
in en_US.utf8 locale
> "1//"<"10/"
[1]