xref: /openbsd-src/gnu/usr.bin/perl/cpan/Encode/t/from_to.t (revision b39c515898423c8d899e35282f4b395f7cad3298)
1*b39c5158Smillert# $Id: from_to.t,v 1.1 2006/01/15 15:06:36 dankogai Exp $
2*b39c5158Smillertuse strict;
3*b39c5158Smillertuse Test::More tests => 3;
4*b39c5158Smillertuse Encode qw(encode from_to);
5*b39c5158Smillert
6*b39c5158Smillertmy $foo = encode("utf-8", "\x{5abe}");
7*b39c5158Smillertfrom_to($foo, "utf-8" => "latin1", Encode::FB_HTMLCREF);
8*b39c5158Smillertok !Encode::is_utf8($foo);
9*b39c5158Smillertis $foo, '媾';
10*b39c5158Smillert
11*b39c5158Smillertmy $bar = encode("latin-1", "\x{5abe}", Encode::FB_HTMLCREF);
12*b39c5158Smillertis $bar, '媾';
13