wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Special Characters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Special Characters" Watch "Special Characters" New topic
Author

Special Characters

Mini Pilla
Ranch Hand

Joined: Jul 15, 2001
Posts: 112
OK...is it me or something else....

If someone copies �(Trademark) from word doc to a textfield and when I try to save that value in the DB, it converts into a '?'.

Then I tried to a round about, used the following replace function in javascript before submitting the form.

var r = replace(t, '�', '& # 1 5 3;');--numeric value

But this doesnot work, it refuses to identify � in the string entered by user.

Any light on this wil be GREATLY appreciated......

I wasted like 24 hrs on this....

Thanks
Rajani

[ June 14, 2006: Message edited by: Rajani Katta ]
[ June 14, 2006: Message edited by: Rajani Katta ]
Mini Pilla
Ranch Hand

Joined: Jul 15, 2001
Posts: 112
Never mind.....I got it

var r = w.replace('�', String.fromCharCode(153));
[ June 15, 2006: Message edited by: Rajani Katta ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Special Characters
 
Similar Threads
i/o streams
Hashcode
Highlight Cell
jq+ code
Threads