Thank you, but this still does not seem to work. And i can't seem to get $.post to work properly as well if i execute it like this:
$("#previewform").children(".sendtextfield").each(function(){ $.post("import/createpreview.php", { fieldname: $ (this).attr("name"), text: $(this).attr("value") }); }); It ends up sending nothing? Firebug says it has sent stuff, but my database disagrees. On 11 dec, 20:27, "Nguyễn Quốc Vinh" <[EMAIL PROTECTED]> wrote: > Hi, i'm vietnamese! We use much à ấ ú ù ổ...,too! I set character to UTF-8! > I sent data in input field with POST method! And all is ok! > U try to set character is UTF-8 as me! > > id12titleHôn nhân > DateTue, 01 Jan 2002 07:48:38 GMTServerApache/2.2.6 (Win32) PHP/5.2.4 > X-Powered-ByPHP/5.2.4ExpiresThu, 19 Nov 1981 08:52:00 > GMTCache-Controlno-store, > no-cache, must-revalidate, post-check=0, pre-check=0Pragmano-cache > Content-Length144Keep-Alivetimeout=5, max=100ConnectionKeep-Alive > Content-Typetext/xmlRequest Headers > HostlocalhostUser-AgentMozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: > 1.8.1.9) Gecko/20071025 Firefox/2.0.0.9Accept > text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q= > 0.8,image/png,*/*;q=0.5Accept-Languageen-us,en;q=0.5Accept-Encoding > gzip,deflateAccept-CharsetISO-8859-1,utf-8;q=0.7,*;q=0.7Keep-Alive300 > Connectionkeep-aliveContent-Typeapplication/x-www-form-urlencoded > X-Requested-WithXMLHttpRequestRefererhttp://localhost/lifecolor/man/index.php?act=mancatContent-Length32Co... > uid=1; upass=34d365d5c03ce54fc4ecab4e11206120; > mnm_key=Z29kOjIyNjlvT1NrdkJ6NVE6ZmU4M2QyNDg0ZWZhZDA2NGYxYzI2NDU2YWY5Y2UxMGY%3D; > mnm_user=god; style=null; PHPSESSID=f4a47c2e181438c1f85351cd3b5a3557Pragma > no-cacheCache-Controlno-cache > > 2007/12/12, jimmeah <[EMAIL PROTECTED]>: > > > > > > > Hej everyone, i got some problems on html entities within my script. > > > I am kinda building a CMS, but it is for a swedish website, so they > > use lots and lots of öäë. > > > Now I gather my input fields from the document and post it to a php > > file like this: > > > ---------------------------------------------------------- > > > $(".createpreview").click(function() > > { > > $("#previewform").children().each(function() > > { > > $.get("import/createpreview.php", { fieldname: $ > > (this).attr("name"), text: $(this).attr("value") }); > > }); > > } > > > For instance i have an input field which says: > > > * Välkommen > > > but when sending the document created is > > > * GET > >http://localhost/cms/import/createpreview.php?fieldname=title&text=V%... > > (281ms) > > > My database displays: > > > * vã¤llkommen > > > And my fetched result back into the page displays: > > > * v�llkommen > > > How can i solve this problem? And where is my capital going to!? I > > know about html entities and html enities converters like > >http://www.w3clubs.com/htmlentities.phpbut when i apply such html > > entity converter my results turn into: > > > * v&auml;llkommen > > > which is near what i want it to be, but still no caps and i want it > > just to be > > > * Vällkommen > > > could someone help me out with a quick solution? > > -- > --------------------------------------------- > Khi bàn luận nghiêm túc: > 1) Lòng tự ái càng cao thì lòng tự trọng càng thấp. > 2) "Tôi chưa thấy bao giờ" có nghĩa là kiến thức còn hạn hẹp. > 3) "Đâu/ai mà chẳng thế" đồng nghĩa với sự đoán mò & vơ đũa cả nắm. > ///////////////////////////////////// > //////////////////////////////////// > Nguyễn Quốc Vinh > 59/29 Duy Tân - Huế > +84-975001226 > +84-988433498