1
J'ai UTF-8 partout, alors pourquoi Page.last.url.encoding retourne "ASCII-8BIT"?Ruby 1.9 champ renvoyant l'encodage ASCII même si UTF8 spécifié
Mes database.yml:
development:
adapter: mysql
username: root
encoding: utf8
database: recipebook
mysql:
CREATE TABLE `pages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`recipe_id` int(11) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
`html` blob,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
SO question sur mysql2: http://stackoverflow.com/questions/ 3001243/ruby-rails-mysql2-gem-fait-quelqu'un-utilise-ce-gem-is-it-stable – Teoulas