Results 1 to 6 of 6
Thread: char datatype
- 05-01-2010, 11:17 PM #1
Member
- Join Date
- Jan 2008
- Posts
- 14
- Rep Power
- 0
- 05-02-2010, 12:41 AM #2
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
What error? 0A is a Line Feed whereas 0B is a Vertical Tab. See http://www.unicode.org/charts/PDF/U0000.pdf.
- 05-02-2010, 07:44 AM #3
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,379
- Blog Entries
- 7
- Rep Power
- 17
The compiler scans input text for \uXXXX sequences before anything else and translates those sequences to the characters they represent; your program text ends up as:
Your \u000a sequence was translated to a real newline character; the resulting text doesn't make up valid program text; that is where those symbolic representations come up: \n for \u000a and \r for \u000d etc.Java Code:char myChar = ' ';
kind regards,
Jos
- 05-02-2010, 08:34 AM #4
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
Ah ya. Forgot again that the unicode is translated first. I'm still an idiot sometimes (more often than is comfortable, in fact).
- 05-02-2010, 08:41 AM #5
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,379
- Blog Entries
- 7
- Rep Power
- 17
- 05-04-2010, 11:21 PM #6
Member
- Join Date
- Jan 2008
- Posts
- 14
- Rep Power
- 0
Similar Threads
-
replaceALL(char oldChar, char newChar) method
By arson09 in forum New To JavaReplies: 0Last Post: 04-28-2010, 05:48 AM -
how to find a datatype
By hasysf in forum New To JavaReplies: 1Last Post: 09-06-2009, 10:41 AM -
Problem in using Object datatype
By mfaizan24 in forum New To JavaReplies: 6Last Post: 05-05-2009, 11:51 PM -
drawing char by char with Graphics
By diggitydoggz in forum New To JavaReplies: 5Last Post: 12-27-2008, 12:49 PM -
Problems with a complex datatype in a webservice
By lichtbringer in forum Web FrameworksReplies: 2Last Post: 10-29-2008, 05:32 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks