Use encodeURIComponent() with your parameters. I'm creating Turkisj web site
and i have a lot Turkish character like ş ğ ı ç ö. I'm using UTF-8 all of my
files for the enconding. And I'm sending all post and get datas with
encodeURIComponent() function over the javascript and jquery.

2007/12/11, Nguyễn Quốc Vinh <[EMAIL PROTECTED]>:
>
> 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 GMT ServerApache/2.2.6 (Win32) PHP/5.2.4
> X-Powered-By PHP/5.2.4ExpiresThu, 19 Nov 1981 08:52:00 
> GMTCache-Controlno-store, no-cache, must-revalidate, post-check=0, pre-check=0
> Pragmano-cacheContent-Length 144Keep-Alivetimeout=5, 
> max=100ConnectionKeep-Alive
> Content-Typetext/xml Request Headers
> HostlocalhostUser-AgentMozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
> 1.8.1.9) Gecko/20071025 
> Firefox/2.0.0.9Accepttext/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.7 Keep-Alive300
> Connectionkeep-aliveContent-Type application/x-www-form-urlencoded
> X-Requested-WithXMLHttpRequest Referer
> http://localhost/lifecolor/man/index.php?act=mancatContent-Length 
> 32Cookiemaintab=register;
> uid=1; upass=34d365d5c03ce54fc4ecab4e11206120;
> mnm_key=Z29kOjIyNjlvT1NrdkJ6NVE6ZmU4M2QyNDg0ZWZhZDA2NGYxYzI2NDU2YWY5Y2UxMGY%3D;
> mnm_user=god; style=null; PHPSESSID=f4a47c2e181438c1f85351cd3b5a3557Pragma
> no-cache Cache-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%C3%A4llkommen
> > (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.php but when i apply such html
> > entity converter my results turn into:
> >
> > * v&amp;auml;llkommen
> >
> > which is near what i want it to be, but still no caps and i want it
> > just to be
> >
> > * V&auml;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




-- 
Yılmaz Uğurlu ~ jabber : [EMAIL PROTECTED]  ~ http://www.2nci.com ~ İzmir

Reply via email to