- Home /
string indexof bug for korean alphabet,string IndexOf Bug!!! for Korean Alphabet!!!!!!
string test = "test"; test.IndexOf("e"); // = 1 ..... Goood
string test2 = "후루룩후루룩홧하"; test2.IndexOf("하"); // = 7 .... Goooood
string test3 = "ㅏㅐㅑㅒㅓㅔㅕㅖㅗㅘㅙㅚㅛㅜㅝㅞㅟㅠㅡㅢㅣ"; test2.IndexOf("ㅗ"); // = 0 .... Bug
and it worked before (can't remember exactly when) ,string test1 = "test"; Debug.Log(test1.IndexOf("e").ToString()); // 1 ................. Good!!!!!
string test2 = "후루룩후루룩하"; Debug.Log(test2.IndexOf("하").ToString()); // 6 ................ Good!!!!!
string test3 = "ㅏㅐㅑㅒㅓㅔㅕㅖㅗㅘㅙㅚㅛㅜㅝㅞㅟㅠㅡㅢㅣ"; Debug.Log(test3.IndexOf("ㅗ").ToString()); // 0 ................ Bad!!!!!
and it worked before... (can't remember exactly when)
Comment