posted 19 years ago
Hi,
The compiler translates Unicode characters at the beginning of the compile cycle.
Using the Unicode escape characters \u000A for newline and \u000D for return in a String or comment produces a compile-error as they are interpreted, literally, as 'end-of-line'.
Always use the special characters '\n' or '\r'.
Here is certain special characters which can be represented by escape sequences for your information.
\n \u000A newline
\t \u0009 tab
\b \u0008 backspace
\r \u000D return
\f \u000C form feed
As these are special characters not having any literal value. when you try to convert them to string object compiler checks whether its a valid character or not.Thats why you getting a compiler error.
Please let me know if you need any further assistance in this regard,
Thanks,
Somasekar.