Changed to UTF-8 encoding

git-svn-id: http://google-refine.googlecode.com/svn/trunk@2039 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
David Huynh 2011-04-06 21:09:21 +00:00
parent 610de0d33a
commit cecfa244e0

View File

@ -496,34 +496,34 @@ public class Metaphone3 {
|| (inChar == 'O') || (inChar == 'O')
|| (inChar == 'U') || (inChar == 'U')
|| (inChar == 'Y') || (inChar == 'Y')
|| (inChar == 'À') || (inChar == 'À')
|| (inChar == 'Á') || (inChar == 'Á')
|| (inChar == 'Â') || (inChar == 'Â')
|| (inChar == 'Ã') || (inChar == 'Ã')
|| (inChar == 'Ä') || (inChar == 'Ä')
|| (inChar == 'Å') || (inChar == 'Å')
|| (inChar == 'Æ') || (inChar == 'Æ')
|| (inChar == 'È') || (inChar == 'È')
|| (inChar == 'É') || (inChar == 'É')
|| (inChar == 'Ê') || (inChar == 'Ê')
|| (inChar == 'Ë') || (inChar == 'Ë')
|| (inChar == 'Ì') || (inChar == 'Ì')
|| (inChar == 'Í') || (inChar == 'Í')
|| (inChar == 'Î') || (inChar == 'Î')
|| (inChar == 'Ï') || (inChar == 'Ï')
|| (inChar == 'Ò') || (inChar == 'Ò')
|| (inChar == 'Ó') || (inChar == 'Ó')
|| (inChar == 'Ô') || (inChar == 'Ô')
|| (inChar == 'Õ') || (inChar == 'Õ')
|| (inChar == 'Ö') || (inChar == 'Ö')
|| (inChar == 'Œ') || (inChar == 'Œ')
|| (inChar == 'Ø') || (inChar == 'Ø')
|| (inChar == 'Ù') || (inChar == 'Ù')
|| (inChar == 'Ú') || (inChar == 'Ú')
|| (inChar == 'Û') || (inChar == 'Û')
|| (inChar == 'Ü') || (inChar == 'Ü')
|| (inChar == 'Ý') || (inChar == 'Ý')
|| (inChar == 'Ÿ')) || (inChar == 'Ÿ'))
{ {
return true; return true;
} }
@ -780,8 +780,8 @@ public class Metaphone3 {
Encode_B(); Encode_B();
break; break;
case 'ß': case 'ß':
case 'Ç': case 'Ç':
MetaphAdd("S"); MetaphAdd("S");
m_current++; m_current++;
@ -837,7 +837,7 @@ public class Metaphone3 {
Encode_N(); Encode_N();
break; break;
case 'Ñ': case 'Ñ':
MetaphAdd("N"); MetaphAdd("N");
m_current++; m_current++;
@ -868,8 +868,8 @@ public class Metaphone3 {
Encode_T(); Encode_T();
break; break;
case 'Ð': // eth case 'Ð': // eth
case 'Þ': // thorn case 'Þ': // thorn
MetaphAdd("0"); MetaphAdd("0");
m_current++; m_current++;
@ -890,13 +890,13 @@ public class Metaphone3 {
Encode_X(); Encode_X();
break; break;
case 'Š': case 'Š':
MetaphAdd("X"); MetaphAdd("X");
m_current++; m_current++;
break; break;
case 'Ž': case 'Ž':
MetaphAdd("S"); MetaphAdd("S");
m_current++; m_current++;
@ -6137,7 +6137,7 @@ public class Metaphone3 {
return true; return true;
} }
// old 'École française d'Extrême-Orient' chinese pinyin where 'ts-' => 'X' // old 'École française d'Extrême-Orient' chinese pinyin where 'ts-' => 'X'
if (((m_length == 3) && StringAt((m_current + 1), 2, "SO", "SA", "SU", "")) if (((m_length == 3) && StringAt((m_current + 1), 2, "SO", "SA", "SU", ""))
|| ((m_length == 4) && StringAt((m_current + 1), 3, "SAO", "SAI", "")) || ((m_length == 4) && StringAt((m_current + 1), 3, "SAO", "SAI", ""))
|| ((m_length == 5) && StringAt((m_current + 1), 4, "SING", "SANG", ""))) || ((m_length == 5) && StringAt((m_current + 1), 4, "SING", "SANG", "")))