Total members 11895 |It is currently Thu Dec 26, 2024 5:57 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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"?




Author:
Proficient
User avatar Posts: 280
Have thanks: 1 time

If that is for Java,

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

_________________
Please recommend my post if you found it helpful


Author:
Proficient
User avatar Posts: 228
Have thanks: 0 time
Post new topic Reply to topic  [ 2 posts ] 

  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     -  



cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com