Converting default encoding for windows to utf8

R

rg.iitk

I want to run a program in java, which needs to understand utf8
encoding, when i run from the command line the conversion of text files
take place through ANSI encoding thats why I dont get the desired
output. I need to basically translate text files dealing in Hindi,
Bengali( Indic Languages).

TIA

Rohit Gupta
 
D

Dale King

I want to run a program in java, which needs to understand utf8
encoding, when i run from the command line the conversion of text files
take place through ANSI encoding thats why I dont get the desired
output. I need to basically translate text files dealing in Hindi,
Bengali( Indic Languages).

Then you need to look at the InputStreamReader and OutputStreamWriter
classes where you can specfy the translation between bytes and characters.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top