Just a guess...but I think the problem is that you're using the decimal
codes in your declaration instead of the hex.  Try...

        int a = 0x000D;
        int b = 0x000A;

That should work.

Joe

-----Original Message-----
From: Graham Cruickshanks [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 21, 2000 11:09 AM
To: [EMAIL PROTECTED]
Subject: ASCII Codes


I'm trying to write a | delimited file for a external program to parse

I.e.

390129|1326|David Gould|.|18 Huxley Way|Bishops
Cleave|Cheltenham|Gloucester|GL52|D||0|N|N||1|
390129|1326|David Gould|.|18 Huxley Way|Bishops
Cleave|Cheltenham|Gloucester|GL52|D||0|N|N||1|

The external program reads in the file incorrectly as the carriage return is
not reconised.

I was using \n to do this but it didn't work, I presume this is a unicode /
Ascii problem.

how do I write a carriage return in ASCII in java.

I've been trying things like this in my jsp file


but to not joy

Graham Cruickshanks
www.itsnotrocketscience.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
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

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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