Webweave i didn't know how to explain my problem well because of my poor
English but to know what i mean with my problem just open your tiny url

http://tinyurl.com/b8fl58

and with that the firefox request will be in the utf-8 encoding but if you
click on the firefox address bar and press enter to re-request the page the
firefox will encode the مقال word to the %E3%DE%C7%E1 which is encoded with
the windows-1256 encoding . so is there anyway to know the encoding of the
comming data from the firefox, any function any script for that.

and thank you again .

On Tue, Feb 3, 2009 at 12:02 AM, Webweave <webwe...@gmail.com> wrote:

>
> Well, that to me would seem to mean that you are indeed trying to
> access the page from a page that is not defined as UTF-8.
>
> From Firefox, if I type مقال into the Google search box, I get a
> return search of
> http://www.google.com/search?q=مقال&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a<http://www.google.com/search?q=%D9%85%D9%82%D8%A7%D9%84&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a>
>
> So wherever you are inputting the string, it is getting translated
> incorrectly (which to me means it's not UTF-8).
>
> See: http://tinyurl.com/b8fl58
>
> If you load up Firebug, you should be able to look at the Response
> headers and see the Content-Type of text/html; charset=UTF-8
>
>
> On Feb 2, 11:21 am, mohammad al-ani <alani.moham...@gmail.com> wrote:
> > thank you Dr. Loboto but i find the real problem.
> >
> > i develop the site under firefox so if i use the internet explorer i can
> get
> > the arabic word like it it but when i use the firefox and search for word
> > like مقال the address of firefox will be
> >
> > /search?keyword=مقال
> >
> > and when i just confirm this link by press enter on it the firefox
> converted
> > the link to
> >
> > http://www.localhost.com/alsameriae/search?keyword=%E3%DE%C7%E1
> >
> > which will cuase the problem so is there any way to check form the
> encoding
> > type
> >
> > On Mon, Feb 2, 2009 at 6:38 AM, Dr. Loboto <drlob...@gmail.com> wrote:
> >
> > > Your problem is caused by wrong page encoding. Follow Marcelo Andrade
> > > checklist to eliminate wrong encoding on all steps. Everywhere should
> > > be UTF-8 and URL will be in UTF-8 too. Or you use some unknown really
> > > stupid browser that can't handle UTF-8 at all - but I can't imagine
> > > such a browser in present time.
> >
> > > On Feb 1, 3:02 pm, mohammad al-ani <alani.moham...@gmail.com> wrote:
> > > > thank you all for your time and help
> >
> > > > but my problem actually is caused by the browser . he send the url
> query
> > > to
> > > > the cakephp in the form of ANSI and i configure the cake and the
> header
> > > of
> > > > generated page to use the utf-8 so the quastion is how to change the
> > > recived
> > > > ansi data to the utf-8 data> it's not about notpad++ it's about
> dynamic
> > > read
> > > > write data
> >
> > > > On Fri, Jan 30, 2009 at 6:54 PM, Marcelo Andrade <
> mfandr...@gmail.com
> > > >wrote:
> >
> > > > > On Thu, Jan 29, 2009 at 7:18 PM, medo <alani.moham...@gmail.com>
> > > wrote:
> > > > > > (..)
> >
> > > > > This is a very common issue.  Just follow this checklist:
> >
> > > > > 1. Using a smart editor (for Windows: Notepad++, Textpad, ...; for
> > > > > Gnu/Linux: Gedit,
> > > > > Kedit, Geany, Kate, Vim...), be sure that all of your .php and .ctp
> > > > > files are saved
> > > > > with the UTF-8 (without BOM) encoding;
> >
> > > > > 2. Be sure that your webserver is configured to serve the pages in
> > > > > UTF-8 encoding
> > > > > (in Apache, the line 'AddDefaultCharset UTF-8' in your httpd.conf);
> >
> > > > > 3. Be sure that your database tables are configured with the UTF-8
> > > encoding
> > > > > (in
> > > > > MySql, create your tables with the proper collation option);
> >
> > > > > 4. In the very last case, if the problem still persists and your
> are a
> > > > > really paranoid,
> > > > > change the PHP interpreter encoding in your php.ini.
> >
> > > > > Best regards.
> >
> > > > > --
> > > > > MARCELO DE F. ANDRADE (aka "eleKtron")
> > > > > Belem, PA, Amazonia, Brazil
> > > > > Linux User #221105
> >
> > > > > [...@pará ~]# linkshttp://pa.slackwarebrasil.org/
> >
> > > > > For Libby's backstory be told on Lost
> > > > >http://www.petitiononline.com/libby423/petition.html
> >
> >
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to