2010-01-01ãã1ã¶æéã®è¨äºä¸è¦§
MySql/Rubyãruby1.9ã®M17Nã«å¯¾å¿ãã¦ããªããã DBããåãåºããæååããã¹ã¦ãASCII-8BITãã«ãªã£ã¦ãã¾ãã¾ãã ãã®ããããã«ããã¤ãæåã¨æ··å¨ãããã¨ãä¸è¨ã®ãããªã¨ã©ã¼ãçºçãã¾ãããincompatible character encodings: UTF-8 and ASCII-8Bâ¦
sub hoge{ my $self = shift; if(@_) { $self->{name} = $_[0]; } return $self->{name}; } ã¨ããã¡ãã¡é¢æ°ãæ¸ãã¦ããã«ããªãã¾ãããã Class::Accessorãç¶æ¿ã㦠package Sample; use base qw(Class::Accessor); __PACKAGE__->mk_accessors(qw(hoge â¦