Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Reading a file that includes apostrophe

807589Jan 14 2009 — edited Jan 14 2009
Hi,

I am trying to read a file that includes Turkish words. I can read words by using this clause :
       inFile = new BufferedReader(new InputStreamReader(new FileInputStream(path), "LATIN5"));
But, file has apostrophe character that i could not read it in java. That character seems as "?" while program reading that file. For example:

Exact sentence is (in file):"Borsada düşüşü öngördü, krizde yüzde 73.3’lük fırsat yarattı"
Read sentence is :"Borsada düşüşü öngördü, krizde yüzde 73.3?lük fırsat yarattı"

How can i fix it?
Thanks for responses.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 11 2009
Added on Jan 14 2009
7 comments
897 views