finally I found the solution to my problem. It was not the issue with
DB either CakePHP. Problem was in PHP - low function. Never use it if
you use encoding different than iso-8859-1. Instead of low use
mb_strtolower(string, 'UTF-8).
Thanks for help.
On 15 Wrz, 14:16, brian
Thanks for finding that one. I had not caught that before and I use
non-english characters all the time. Guess Iäd better slow my
application down by replacing all strtolower with the mb_ version...
and possibly if clauses and things to make sure mb is installed.
But have a look at php.net... it
I noted that you need to do some extra work on ucfirst() since it has
no direct mb_ equivalent. You have to roll your own or pick one from
php.net since mb_convert_case() can only work like ucwords().
On Sep 16, 11:42 am, Martin Westin martin.westin...@gmail.com wrote:
Thanks for finding that
What DB do you use? It is not CakePHP, it 's DBMS problem.
If MySql, set encoding to UTF8 and DB collation to utf8_unicode_ci,
not utf8_general_ci.
On Sep 15, 5:11 am, Roman roman.janowc...@gmail.com wrote:
Hi,
I have created filter using paginate with extra options taken from
input
Also, use a terminal to verify that the data is as it should be. If
all you have to work with is PHPMyAdmin, check that its pages are
using UTF-8.
It's easy, with MySQL, to import UTF-8 data that gets destroyed. If
using an import file, put the following at the top:
SET NAMES 'utf8';
And, of
Hi,
I have created filter using paginate with extra options taken from
input fields. Service and database use UTF-8 (checked). When I try to
filter word with polish characters (e.g. ósma) cakephp does not return
proper value.
Do you have any idea ?
Regards,
Roman
I wouldn't call it normal. I am not sure there is a normal collation.
If you state nothing else MySQL will choose utf8_general_ci so that
would be the default.
Binary collation is the collation for non-lingual text. Every
character counts and order clauses cause them to be ordered by their
Dr. Loboto all of my pages encoded with utf-8 and the problem is not in my
page the problem is with the firefox and everything go perfect with IE
see my last reply to Webweave
On Tue, Feb 3, 2009 at 6:50 AM, Dr. Loboto drlob...@gmail.com wrote:
Mohammad Al-Ani, you really found your real
Must be something wrong with your copy of Firefox: I don't get any mis-
encoding of the URL in mine.
I have version 3.0.5 and tested it both on Windows XP and Mac OS X
with no problems.
The URL that gets displayed in the browser by pressing enter in the
address bar is the one with the Arabic
On Tue, Feb 3, 2009 at 8:55 AM, mohammad al-ani
alani.moham...@gmail.com wrote:
Dr. Loboto all of my pages encoded with utf-8 and the problem is not in my
page the problem is with the firefox and everything go perfect with IE
It works on IE because the CP-1252 encoding is a Windows-specific
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
While on this subject, which MySQL table encoding is the normal,
default utf-8 encoding? utf8_bin, or utf8_general_ci, or
utf8_unicode_ci?
On Feb 3, 8:48 am, Marcelo Andrade mfandr...@gmail.com wrote:
On Tue, Feb 3, 2009 at 8:55 AM, mohammad al-ani
alani.moham...@gmail.com wrote:
Dr.
The ci flavors are for case-insensitive versions, so if you want
John to be equal to john with no case conversion, you use one of
them.
The utf8_bin is the normal collation.
On Feb 3, 10:28 am, BrendonKoz brendon...@hotmail.com wrote:
While on this subject, which MySQL table encoding is the
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
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
Mohammad Al-Ani, you really found your real problem - your page is not
UTF-8 page! %xx form is url-encoded non-ANSI string as only 7-bit
symbols can be used in URLs. That's why browers encode non-ANSI
symbols and then they are automatically decoded by Cake before go into
params. Some of browsers
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
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
How did you save your files? Are you working on Windows (using
character set windows-1256) ?
Windoze by default saves files on the file system with the default
ANSI character set. In order to get it to save as UTF-8, you have to
explicitly tell it to (e.g. in Notepad change the dropdown for
please any suggestions
On Fri, Jan 30, 2009 at 10:48 AM, mohammad al-ani
alani.moham...@gmail.comwrote:
and when i choose the windows-1256 i see the real world which is مقال
On Fri, Jan 30, 2009 at 10:23 AM, mohammad al-ani
alani.moham...@gmail.com wrote:
params show me the value of the
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
hi group,
i have problem with my search feature in my site the problem is when i
use the search page to search for an Arabic word with the form get
method. and i faced that problem in the prototype below
search_controller.php
?php
class SearchController extends AppController {
var
What does $this-params show you?
On Thu, Jan 29, 2009 at 5:18 PM, medo alani.moham...@gmail.com wrote:
hi group,
i have problem with my search feature in my site the problem is when i
use the search page to search for an Arabic word with the form get
method. and i faced that problem in the
params show me the value of the key 'keyword' is yes like this symbols
On Fri, Jan 30, 2009 at 2:48 AM, brian bally.z...@gmail.com wrote:
What does $this-params show you?
On Thu, Jan 29, 2009 at 5:18 PM, medo alani.moham...@gmail.com wrote:
hi group,
i have problem with my
and when i choose the windows-1256 i see the real world which is مقال
On Fri, Jan 30, 2009 at 10:23 AM, mohammad al-ani
alani.moham...@gmail.comwrote:
params show me the value of the key 'keyword' is yes like this symbols
On Fri, Jan 30, 2009 at 2:48 AM, brian bally.z...@gmail.com
1. Make sure everything in your database is utf8 (or other encoding
needed).
2. Make sure you're connecting to your database with utf8[1].
3. Make sure your pages are served in utf8.
[1]
http://groups.google.com/group/cake-php/browse_thread/thread/dcdbcc085dcd09a0
Hope that helps!
On Jan 22,
i just solved the problem by encoding all data and html in utf-8.
thanks so much for your help.
On Jan 22, 8:16 pm, brian bally.z...@gmail.com wrote:
First thing is to make sure that the page with the form is being
served with the proper encoding. Use $html-charset() in your layout.
The form
hi,
i am currently developing an application with CakePHP, but i have a
serious problem with encoding. my database records are in Turkish.
when i view a record, there is no problem and i can view Turkish
characters. but when i try to edit a record, all fields that contain
at least a Turkish
First thing is to make sure that the page with the form is being
served with the proper encoding. Use $html-charset() in your layout.
The form should submit using the character set that it was displayed
with.
Next, make sure that that's what your browser is using--check page
info in the browser.
29 matches
Mail list logo