Changeset 197 in lab
- Timestamp:
- Jan 26, 2013 1:38:41 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/misc/findnonsjis.pl
r195 r197 19 19 my $sjis = encode("cp932", $utf8->decode($str), Encode::FB_HTMLCREF); 20 20 if ($sjis =~ /&#\d{4,};/) { 21 return 1; 21 Encode::from_to($sjis, "cp932", "utf8"); 22 return $sjis; 22 23 } 23 24 … … 35 36 my @dirs; 36 37 while (my $entry = shift @entries) { 37 if (m atch($entry)) {38 print "'$target/$entry' c ontains non Shift_JIS character\n";38 if (my $convert = match($entry)) { 39 print "'$target/$entry' can be converted to '$convert'\n"; 39 40 next; 40 41 }
Note: See TracChangeset
for help on using the changeset viewer.