dcsimg
UTF-16 support in java
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Praveen_Singh
Posted On:   Tuesday, April 24, 2001 12:09 AM

I want to create a file which contains some speacial characters for that i write the code something like this :

OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream("unicodeFile.txt"), "UTF-16");

in fact i'm using this line of code in a JApplet code and when I 'run my JApplet in internet explorer5.0 with using java plug-in 1.3 version but it gives an excpetion saying "UnsupportedEncodingException" but at the same time when i use this line of code in an console application and run it with jdk1.3 environment it works fine. what is wrong here?? somebody please help.

About | Sitemap | Contact