Hi Greg,
> If that's what's
> happening, it's working
> by accident.
Right, because the windows encoding is close to 8859-1
but not exactly the same...
>
> What you probably need to do is specify 8859-1 as
> the output text-encoding,
> rather than relying on the platform-dependent
> default.
Ok...
>
> Exactly how to do that, I can't tell you, because
> you don't say how you're
> outputting your HTML documents.
>
> If you're using FileOutputStream already, then what
> methods do you write
> the HTML text with?
not using it...using as follows..
filenameStr --> FileWriter --> PrintWriter --> HTML
OUTPUT
>
> If you're using FileWriter, then switch to a
> FileOutputStream within an
> OutputStreamWriter where you specify the
> text-encoding as "8859-1". See
> the constructors of OutputStreamWriter for details.
Ok, so I'll chain it like so...
filenameStr --> FileOutputStream -->
OutputStreamWriter --> PrintWriter --> HTML OUTPUT
.. using the charset string as "8859-1" as the arg to
OuputStreamWriter.
>
>
> >What is the Mac encoding charset type? If there is
> >one, Can it be interpreted using safari?
>
> If I understand those questions correctly, the
> answers are:
> 1) in Java, "file.encoding" is MacRoman by default
> on Mac OS X.
> 2) yes, if you specify "charset=MacRoman" in the
> HTML.
>
> Not sure how helpful those answers are, because I
> think they're missing the
> basic point that you should take control of the
> text-encoding written to
> the file, rather than relying on the
> platform-dependent default.
I think you are right. Lot's of THANKS for the
feedback I'll give those suggestions a try.
Regards,
Mike
____________________
> Do not post admin requests to the list. They will be
> ignored.
> Java-dev mailing list
> (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
http://lists.apple.com/mailman/options/java-dev/email@hidden
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden