Help for this page

Select Code to Download


  1. or download this
    my $octets_for_mysql = decode('UTF-8', $chars);  # Option 1
    my $octets_for_mysql = encode('utf8', $chars);   # Option 2
    
  2. or download this
    my $chars = decode('UTF-8', $octets_from_mysql);  # Option 1
    my $chars = decode('utf8', $octets_from_mysql);   # Option 2