On Thu, 21 Feb 2002, Paul Smiley <[EMAIL PROTECTED]>
wrote:

> I am creating deployment descriptors and such on the fly - and using
> a writer similar to the following to write them:
> 
>               FileOutputStream fos = new
>               FileOutputStream(buildBeanFile); OutputStreamWriter
>               osw = new OutputStreamWriter(fos, "UTF-16");
>               PrintWriter ps = new PrintWriter(osw);
> 
> So, to confirm, if I set the encoding to UTF-8 and write to a stream
> as above with encoding, it will be adequate for eastern languages?

It will be adequate for any character set that is a subset of Unicode.

The name of the encoding, as far as Java is concerned, is UTF8 without
the dash, see
<http://java.sun.com/products/jdk/1.2/docs/guide/internat/encoding.doc.html>

Stefan

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to