底下 config 的操作没做..
数据表的格式是 UTF8,我换了个 SQLITE3 的管理工具仍然一样,有点怪异,我看 log 的 update 和 creat 操作是 utf8 写入
Started PUT "/users/1" for 127.0.0.1 at 2012-08-14 15:12:32 +0800 Processing by UsersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"QwqoNidpb7o5YmH+IEOIXcSFF/Xc6hpt5ffgOcOALUQ=", "user"=>{"first_name"=>"11111111111 在", "last_name"=>"1111111", "active"=>"1", "bio"=>"1111 磊"}, "commit"=>"Update User", "id"=>"1"} [1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]] [1m[36m (15.6ms)[0m [1mbegin transaction[0m [1m[35m (93.8ms)[0m UPDATE "users" SET "first_name" = '11111111111 在', "bio" = '1111 磊', "updated_at" = '2012-08-14 07:12:32.296875' WHERE "users"."id" = 1 [1m[36m (109.4ms)[0m [1mcommit transaction[0m Redirected to http://localhost:3000/users/1 Completed 302 Found in 266ms (ActiveRecord: 218.8ms)
数据表的格式是 UTF8,我换了个 SQLITE3 的管理工具仍然一样,有点怪异,我看 log 的 update 和 creat 操作是 utf8 写入
win7 系统
用 sqlite3 命令行显示也是乱码