How to read UTF 8 encoded file in java with turkish characters

后端 未结 3 1463

I am trying to read a UTF-8 encoded txt file, which has some turkish characters. Basically I am have written an axis based web service, which reads this file and send the ou

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-07 04:40

    Code looks good. The problem should be in console output that cannot print Turkish. To be sure make a temp test in your program: take the string with Assal?τ????÷÷?? that you read from file and do this

     System.out.println(str.charAt(6) == 'ğ');
    

提交回复
热议问题