Hi Markos,

> > It's all Java stuff.  Java stores data in memory as Unicode, so
> > everything going into Java must be converted into Unicode.  Currently,
> > there is no way Java can tell whether a file is ascii or Greek or
> > Japanese or whatever.  So, you have to Unicode escape the files.
> > native2ascii makes life a bit easier.  ;)
> 
> Ok this is true, and maybe we are getting a bit out of topic but, why cant I
> just save the file in UTF-8 format? Isn't that unicode? :/

The quick answer is, "because that's how it's implemented".

> Also, while searching for a solution I came across the load(InputStream)
> method of java.util.Properties which has the value of charset hardcoded to
> "8859_1" which made me wonder...

But I guess you already know that...  So you see, although Java
internally uses unicode, Properties only accepts ascii files for
external storage.  Of course, you always have the choice to hack
Struts.  ;)

Best regards,
-- Shinobu

--
Shinobu Kawai <[EMAIL PROTECTED]>

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

Reply via email to