You are here: Re: problem with php, json, browser, charset « PHP Language « IT news, forums, messages
Re: problem with php, json, browser, charset

Posted by Pugi! on 01/05/08 19:32

I've expiremented a bit with escape for javascript and urlencode for
PHP.
They have a different outcome for ° (symbol for degrees):
javascript: %B0
PHP: %C2%B0
Could this be the cause for my problems ?

Pugi!

On 5 jan, 18:04, "Pugi!" <pugin...@gmail.com> wrote:
> Hi,
>
> I am having a problem that is occuring when using php, json, utf-8
> charset and IE7.
> It sounds like a browser (thus client side) problem but since it is
> occuring on a php driven website, I think the best help I can get is
> here.
> Given: webpage (valid XHTML, utf-8 charset) with form (I use the YUI
> dialog), using javascript I collect all the user input on the form,
> store it in an object, json encode it, send it to the server (AJAX
> GET, no form submit), json decode it, validate and sanitize it, store
> it in database when ok, otherwise create error message and send
> response back to the client.
> The problem occures when the user inputs coordinates like 53°16'35''.
> which is allowed. It works fine with FF, Safari and Opera, but not
> with IE7 (dont' know for IE6). Before the request is send to the
> server I visualize the json encoded information and the url with
> querystring in an alert and there is no difference here between IE7
> and other browsers, but once it arrives on the server there is a
> difference:

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация