You could look at java.io.DataOutput.writeUTF().
Also this may do what you want - but I have not tried it :)...

String encoding = ...
OutputStream outputStream = ...
OutputStreamWriter writer = new OutputStreamWriter(outputStream , encoding);
writer.write("...");

For the encodings that java 1.1 supports, look at the bottom of:
http://www.javasoft.com/products/jdk/1.1/intl/html/intlspec.doc7.html

Rafal Rybak

> -----Original Message-----
> From: Mahesh Patil [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 05, 1999 6:54 AM
> To: [EMAIL PROTECTED]
> Subject: Ascii to Unicode.
>
>
> Hi,
> Is there any function in Java to convert Ascii ( latin text )
> to Unicode...
>
> Suppose
>      String str = "Mahesh";
> I want to store this string str in a database as unicode
> character. Oracle
> 8i supports unicode data type ........Does anybody know how
> to do this in
> Java.
>
> Thanks in advance
> Mahesh.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to