locked
convert unicode to string RRS feed

  • Question

  • If I have a string that I pull from my database (stored in unicode), how do I convert this string so I can display in a textbox?

    I am trying to store chinese into the db and then display back onto my site. I have not found any solution to this so if anyone had any insight it would be greatly appreciated. I figure this is a common thing but I know nothing about it.
    Tuesday, October 23, 2007 4:34 AM

Answers

  • First check to see if you have the following in your page head in the META tag:

     

    HTTP-EQUIV="Content-Type"  content="text/html; charset=UTF-8;"

    Tuesday, October 23, 2007 11:27 AM