Jump to content


Turn into...


3 replies to this topic

#1 Dat

    Young Padawan

  • Members
  • Pip
  • 55 posts
  • Gender:Male

Posted 12 September 2007 - 06:13 PM

What is the php function to transform " into " and ?japanese symbols to &#31186

Because I'm making a form and I want to update it but the value comes out as:

<input type="text" value=""Peace" by Dat"/>
So yeah... to fix this I need to transform it into w/e it's called to make it work.

#2 Hayden

    P2L Jedi

  • Members
  • PipPipPip
  • 717 posts
  • Gender:Male
  • Location:Texas

Posted 12 September 2007 - 08:54 PM

htmlspecialchars()

#3 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 12 September 2007 - 11:16 PM

htmlspecialchars() will do the quotes. There is no native function for unicode charactes, but the user comments for that function or htmlentites() may provide some insite into how to do that.

Correction: No function yet: http://php.net/manua...ref.unicode.php (for future reference only).

Edited by rc69, 12 September 2007 - 11:17 PM.


#4 Dat

    Young Padawan

  • Members
  • Pip
  • 55 posts
  • Gender:Male

Posted 13 September 2007 - 08:22 AM

Thanks it's working now.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users