cake-php@googlegroups.com
[Top] [All Lists]

Re: Passed parameter in unicode - issue

Subject: Re: Passed parameter in unicode - issue
From: cheran krishnamoorthy
Date: Sat, 16 Oct 2010 23:55:16 +0530
Encoding url wont work some times, if you have not set up your htaccess correctly.Cos you are passing all request to one page using htaccess.

Solutions would be

use POST instead of GET.Just an idea

On Sat, Oct 16, 2010 at 11:31 PM, jsalonen <joni.salonen@xxxxxxxxx> wrote:
Which CakePHP version do you work with? I tested this with 1.3.4 and
it works correctly:

...
     Â[named] => Array
       Â(
         Â[Search.title] => àààà
       Â)
...


On Oct 15, 6:49Âam, Harish <harisha...@xxxxxxxxx> wrote:
> Greetings!
>
> I am new to Cakephp, done some php. I am developing a very simple
> library management app for a NGO. They have books in various
> languages. My simple app, which shows listing of books, add book, edit
> book works quite well with unicode. However the search is not working.
> When I tried to debug the issue, I found that the passed parameter is
> being translated to something that I cannot understand.
>
> For e.g. I am trying to search for a book titled àààà (this is kannada
> language) the controller dump shows this:
>
> Â [name] => Book
> Â Â [here] => /cake/index.php/books/index/Search.title:
> %E0%B2%95%E0%B2%B5%E0%B2%B2%E0%B3%81
> Â Â [webroot] => /cake/app/webroot/
> Â Â [action] => index
> Â Â [uses] =>
> Â Â [params] => Array
> Â Â Â Â (
> Â Â Â Â Â Â [pass] => Array
> Â Â Â Â Â Â Â Â (
> Â Â Â Â Â Â Â Â )
>
> Â Â Â Â Â Â [named] => Array
> Â Â Â Â Â Â Â Â (
> Â Â Â Â Â Â Â Â Â Â [Search.title] =>
> %E0%B2%95%E0%B2%B5%E0%B2%B2%E0%B3%81
> Â Â Â Â Â Â Â Â )
>
> So the unicode characters are being changed to these % characters. I
> am not able to understand as to what is this format is and how and why
> this is happening. The URL (http://localhost/cake/index.php/books/
> index/Search.title:àààà) seems to show the characters properly. I have
> included the encoding parameter in dbconfig.php.
>
> Before posting this, I have spent several hours trying to find a
> solution. Did not find any.
>
> Appreciate your help.
>
> Regards,
> Harish

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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



--
Cherankrish
Skype: cherankrish

QR code :


Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
cake-php+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
<Prev in Thread] Current Thread [Next in Thread>