Re: Quickform & Foreign Text

From: Date: Thu, 18 Nov 2004 13:40:08 +0000
Subject: Re: Quickform & Foreign Text
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15634@lists.php.net to get a copy of this message
Hi, PHPDiscuss - PHP Newsgroups and mailing lists wrote:
I am using HTML_Quickform to process a form that will use primarily English but should be able to deal with Korean characters. The Korean characters are INSERTed into my database as they should be, represented by html entities(ex. & #50516;). The problem arises when a user goes to edit their submission and I have to setDefaults to place what they have written into a <textarea>. Quickform is turning all ampersands into (& amp;) Therefore the Korean text is turned into unreadable html entities which look like this: (& amp#50516;). Is there a way I can make sure that HTML_Quickform does not convert the ampersand that appears on Korean text into & amp;?
Either 1) Use Unicode instead of HTML entities or 2) Create a custom version of textarea that won't encode characters

« previous php.pear.general (#15634) next »