to read unicode character in java

前端 未结 3 1052
你的背包
你的背包 2021-01-13 02:24

i am trying to read Unicode characters from a text file saved in utf-8 using java my text file is as follows

अ, अदेबानि ,अन, अनसुला, अनसुलि, अनफावरि, अनजालु, अ

3条回答
  •  情书的邮戳
    2021-01-13 02:56

    If you are reading the text properly using UTF-8 encoding then make sure that your console also supports UTF-8. In case you are using eclipse then you can enable UTF-8 encoding foryour console by:

    Run Configuration->Common -> Encoding -> Select UTF 8
    

    Here is the eclipse screenshot.

    enter image description here

提交回复
热议问题