Hi Fred
I am using PHP on the server side. I need to do searching for the some
records who starts with moñ.
So I simply writing an SQl query
and adding following filter in it
///Match First Name///
if($_POST["FirstName"]!="")
{
$filters .=" AND ".DB_TABLE_CONTACTS_REPS.".FirstName like
'%".trim(urldecode($_POST['FirstName']))."%'";
}
Here I am sending moñ in first name parameter through POST via AJAX
using Prototype.js.
When I am prining the query (using document.write), I am getting the
following
'FirstName like '%moñ%'.
And it is returning wrong results.
And Fred when I use the simple AJAX code without using the Prototype
js, I am getting correct result.
So something needs to be changed in Prototype.js.
I hope this will give you some idea
Thanks again
Harpreet
On Jun 3, 3:48 pm, "Frederick Polgardy" <[EMAIL PROTECTED]> wrote:
> What software are you using on the server side? How is your server
> configured? Where are you seeing the bad character, in a response page, in
> a file, in the database? A little snippet of server code that's giving the
> wrong result would help.
>
> -Fred
>
> On Tue, Jun 3, 2008 at 5:39 AM, Harpreet <[EMAIL PROTECTED]> wrote:
>
> > Here the Ajax options are being set and we can see that encoding is
> > given UTF-8.
> > Now what should I put in the encoding parameter instead of UTF-8 which
> > allows the character like 'ñ'.
> > I have tried the ISO-8859, but the result is same.
>
> > Anu guidance here will be great help.
>
> --
> Science answers questions; philosophy questions answers.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---