Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

Invalid unicode sequence error ("u")

Tue Oct 21, 2008 8:51 pm

I have a string which consists of a DOS path something like "\sample\user_data\example".

The "\u" in "\user_data" above gives an invalid unicode javascript
error in IE and hence my page isnt displayed.
Hence I wanted to replace "\u" in the string with something like "\
u"(space u)as i was not able to escape it. This also does not work as
java too does not allow "\u" and gives "Invalid unicode character
sequence" error when i use it with replaceAll.

Que 1: Can i escape the \u character some how?
Que 2: How can i replace all "\u" character in a string with something else like "\ u"?



Re: Invalid unicode sequence error ("u")

Tue Oct 21, 2008 8:53 pm

If that is for Java,

You can declare that in StringBuffer and by using StringTokenizer , you can
separate "\ u".

Post a reply
  Related Posts  to : Invalid unicode sequence error ("u")
 Make your own Visual Basic 6 Version of "Tail for windows"     -  
 Program for "Selection of arithmetic operations" in Java     -  
 Temu Coupon Code $100 off |"|act796165|"| for New and Exis     -  
 How to save in a file the ASCII Characters? Like "☺"     -  
 help for "Note pad code in java"     -  
 How to add "Description" on every topics ?     -  
 @SuppressWarnings("unchecked")     -  
 Free "tail -f" Tool for all Platforms: Tail for Windows, Tai     -  
 how to write a "c' program on fibannoic series     -  
 Invalid Argument error in IE7     -