- Timestamp:
- Jan 26, 2013 1:38:41 AM (12 years ago)
- Branches:
- master, trunk
- Children:
- 44957a5
- Parents:
- 7ec37bd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
misc/findnonsjis.pl
rdfae53c rbf1a1ea 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.