Can anyone recommend me of a good Java programming  mailing list, I dont
want to clutter the list with non related JSP questions...

        The question is: How can I understand a little bit more about charsets? I
seem to be confused about how it converts characters to numerical values.

    char c = 'c';
    int n = (int) c;

    String str = "The numerical value is: " + n;


        It works fine when tested in a simple main class. But when I grab content
from Javamail (Content-type is "text/plain; charset=ISO-8859-1"), the result
is a disaster.

        How do I make sure I am using the correct charset, or even, how do I
convert charsets to make sure I am working with right char codes?

Thanks,
Dario Andrade
WIZ Technologies
e-mail: [EMAIL PROTECTED] - (21) 219-1138
Av. das Na��es Unidas, 12.995 - 10 andar
S�o Paulo - SP - CEP 04578-000
Tel.: 55 11 5503-6590
Fax.: 55 11 5503-6699
web site: http://www.wiz.com.br
wap site: http://wap.wiz.com.br

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to