Displaying 20 results from an estimated 1000 matches similar to: "Using UTF8 under mysql in Centos6"
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
2008 Sep 04
3
MySQL connection collation
Hi!
I have ran on problem with collations. In database.yml I have set:
encoding: utf8, but when in console run:
>> ActiveRecord::Base.connection.collation
=> "latin1_swedish_ci"
It is Rails 2.1, mysql gem 2.7, mysql 5.1.22. This leads to errors like:
Mysql::Error: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and
(utf8_general_ci,COERCIBLE) for operation
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
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"},
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
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
2007 Nov 30
0
Screwed Special Characters in an utf8 String Read From Database
Hello,
I have a mysql database with a InnoDB table in utf8_general_ci
encoding. Inside this table there is a column "path", varchar(255),
utf8_general_ci.
What I am trying to do now, is to use this path from the database to
look up a local file and transmit this file to the user. The problem
is, that my program is not able to open any files, that contain
special characters (e.g.
2007 Apr 01
7
database.yml: encoding: utf8 does not work
Hi all
According to the Agile 2nd Ed book I added the line encoding: utf8 to my
database.yml connections.
But now when running rake I get plenty of errors:
Character set ''utf-8'' is not a compiled character set and is not
specified in the ''/usr/local/mysql/share/mysql/charsets/Index'' file
What''s wrong here?
I checked this Index file, but it seems to
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 Jan 18
4
Problem with encoding - characters such as öäü
Hi
I''m trying to use german characters on a ruby on rails application, but
for get ? on dropwdown menus. The database, tables and fields are
encoded utf8_general_ci. I have this in my application controller:
class ApplicationController < ActionController::Base
before_filter :set_charset
before_filter :configure_charsets
def set_charset
@headers["Content-Type"] =
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 10
0
Character Sets and rake db:test:prepare
As far as I can tell, if I''m using MySQL and I set the character set
and collation on my databases when I create them (e.g. CREATE DATABASE
project_development CHARACTER SET utf8 COLLATION utf8_general_ci),
when I run db:test:prepare it''ll lose that information because
db:test:purge drops and recreates my database without bothering to
check what my character set and collation
2015 Aug 13
2
Bug in rank with utf8?
Yes, collation is a strange thing, and?
Collation order will depend on locale settings, and there are quite a few cases where the collation order of two items is not defined.
To add to the confusion, on OSX Mavericks, I see
> x <- "\u0663"
> y <- 3
>
> x == y
[1] FALSE
> rank(c(x, y))
[1] 2 1
> x
[1] "?"
> x == y
[1] FALSE
> x > y
[1] TRUE
2014 Aug 28
2
sql codificación R
Estimados
Les envío dos archivos, el primero es mysql, el segundo es el código R.
A ambos los ejecuté en ubuntu 14.04, anteriormente en mi script tenía
anotado, se ve feo pero anda, esto es referente a los acentos, hoy se ve
feo (codificado no en español) y rjson produce un error, básicamente me
informa que no es UFT-8.
Desconozco que pasa, ¿alguna idea?
Desde ya muchas gracias.
Javier
2008 Sep 02
2
MySQL lookups on VARCHAR with accents
I am running into problems with MySQL and lookups. The table has character
set utf8, but:
mysql> select id, token from tokens where token = ''esta'';
+-------+-------+
| id | token |
+-------+-------+
| 83417 | está |
+-------+-------+
1 row in set (0.00 sec)
How do I configure things so MySQL doesn''t ignore accents?
TIA,
Jeffrey
2015 Aug 13
3
Bug in rank with utf8?
x <- "\u0663"
y <- 3
x == y
# FALSE
rank(c(x, y))
# c(1.5, 1.5)
--
http://had.co.nz/
2015 Nov 30
2
SOT: MariaDB 5.5.x-MariaDB logs are not going to desired .log file
Hi there, I know this is off-topic or semi off-topic but I really need some
help since I am stucked.
I'm trying to redirect MariaDB logs to `/var/log/mysql/*.log` files as
shown below on the `/etc/my.cnf.d/server.cnf` file:
#
# These groups are read by MariaDB server.
# Use it for options that only the server (but not clients) should see
#
# See the examples of server
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: