• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Special Characters

 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Never mind.....I got it

var r = w.replace('�', String.fromCharCode(153));
[ June 15, 2006: Message edited by: Rajani Katta ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic