search for: utf8_general_ci

Displaying 17 results from an estimated 17 matches for "utf8_general_ci".

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] default-character-set = utf8 but it doesn't seems to work ... Any idea?? Thanks.
2009 Aug 04
0
Mysql::Error: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE)
...;=>{"score"=>"79.60", "player_name"=>"一", "iphone_identifier"=>"6b194f783d645ba1a7c30c0e31b1b67300eb0a25"}, "product_id"=>"7"} ^[[4;35;1mSQL (0.1ms)^[[0m ^[[0mSET collation_database = ''utf8_general_ci'' ^[[0m ^[[4;36;1mSQL (0.1ms)^[[0m ^[[0;1mSET collation_connection = ''utf8_general_ci'' ^[[0m 7--- !map:HashWithIndifferentAccess score: "79.60" player_name: !binary | 5LiA iphone_identifier: 6b194f783d645ba1a7c30c0e31b1b67300eb0a25 ^[[4;35;1mSQL (0....
2008 Sep 04
3
MySQL connection collation
...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 ''like'': SELECT * FROM `tags` WHERE (name LIKE ''. UTF-8 STRING.'') LIMIT 1 Table are set for UTF-8 and server is run with mysql_args=" --character-set-server=utf8 --collation-server=utf8_general_ci" Any ideas? -- Posted via h...
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 = ''Pázmánd'' and zip = ''(null)'' and lat = > ''47.283'' and lng = ''1...
2009 May 26
6
dump and import MySQL table w/ accents
...;jose'' and ''josé''. I''ve been deleting one by hand from the dump, but it is tedious and very slow. Emacs crawls when dealing with very large files with very long lines. I just don''t understand why the accents are causing problems. The string column is utf8_general_ci collation, just like other fields in the database with strings with accents. What do I need to specify so it will import the dump? Is there a problem with strings with accents in composite indexes? The table is created with a Rails migration, but everything else is pure MySQL utilities. TIA,...
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
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 s...
2010 Sep 20
5
Update to website not printing special Characters
...utf8 character_set_database latin1 character_set_filesystem binary character_set_results utf8 character_set_server latin1 character_set_system utf8 character_sets_dir /usr/share/mysql/charsets/ collation_connection utf8_general_ci collation_database latin1_swedish_ci collation_server latin1_swedish_ci completion_type 0 concurrent_insert 1 connect_timeout 10 Perhaps when I sort this out I will reach my ultimate goal of entering text in phpMy...
2014 Aug 28
2
sql codificación R
...e ------------ SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; CREATE SCHEMA IF NOT EXISTS `usuario` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ; USE `usuario` ; -- ----------------------------------------------------- -- Table `usuario`.`usuario` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `usuario`.`usuario` ( `idusuario` INT NOT NULL AUTO_INCREMENT, `nombre` VARCHAR(45) NULL, PRIMARY KEY (`...
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 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"] = "text/html; charset=utf-8" end def configure_charsets @response.headers[...
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 actually are. This seems like something other people would have tripped over by now, but google searches aren'&...
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 methods: Set the collation to utf8_unicode_ci via an init-connect line in the database server''s my.cnf Set the ActiveRecord ConnectionAdapter to use the desired collation. Is there a best approac...
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
2015 Nov 30
2
SOT: MariaDB 5.5.x-MariaDB logs are not going to desired .log file
...log = 1 #Error Log log_error = /var/log/mysql/mysql_error.log #Slow Query Log slow_query_log = 1 slow_query_log_file = /var/log/mysql/mysql_slow.log long_query_time = 2 log-queries-not-using-indexes collation-server = utf8_general_ci init-connect='SET NAMES utf8' character-set-server = utf8 # this is only for embedded server [embedded] # This group is only read by MariaDB servers, not by MySQL. # If you use the same .cnf file for MySQL and MariaDB, # you can put MariaDB-only options here...
2005 Nov 02
4
Trouble with Umlauts
I am developing an application in German. This means I have umlauts. When I was using rails version 0.13.1 there seemed to be no further configuration needed for umlauts to be shown correctly. Now I have upgraded to 0.14.2 and the umlauts are being displayed at ''?''s. I changed the encoding of the page and it is UTF-8. I have also tried the steps listed at
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