ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Ant, SAX Parser and Internationalization
Date Thu, 21 Feb 2002 17:00:37 GMT
On Thu, 21 Feb 2002, Paul Smiley <ps180001@exchange.DAYTONOH.NCR.com>
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:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message