Re: PHP charset encoding

From: Date: Wed, 31 Mar 2004 04:09:14 +0000
Subject: Re: PHP charset encoding
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-181988@lists.php.net to get a copy of this message
On Tuesday 30 March 2004 19:31, Rob Ellis wrote: > On Tue, Mar 30, 2004 at 11:23:03AM +0300, nabil wrote: > > When submitting a data from an HTML page > > and inserting them in MySQL: what > > encoding they will be ? > > is it the page encoding? > > the field size like VARCHAR 15 won't fit > > the same in both encoding for the same > > text. !! > > Is the font any relation with encoding? > > phpmyadmin doesn't support UTF-8 so > > dumping your data using it will screw it > > up.... is it a way to convert it inside > > the database... > > > > Explain to me please , or if you can > > tell me where to find my answers (not > > google) > > if the page that the input form is on sets > utf-8 as the content type, then most (?) > browsers will send utf-8. you can use a > meta tag like: > > <meta http-equiv="Content-Type" > content="text/html; charset=utf-8"> > What we have done in a similar situation is to set the client encoding in php.ini as below and this solved the same problems as you describe: ================================== default_mimetype = "text/html" default_charset = "utf-8" ================================= Hope this helps. Best regards, -- Integrated Management Tools for leather industry ---------------------------------- http://www.leatherlink.net Ma Siva Kumar, BSG LeatherLink (P) Ltd, Chennai - 600106

« previous php.general (#181988) next »