Thread: Storage of Indian Language text in postgresql through PHP

Storage of Indian Language text in postgresql through PHP

From
INDER
Date:
Hello Everyone. I am new to this group and as well as to the Postgres
also. Can anybody tell me that how to insert hindi text into postgres
that a user has entered from html input with the use of PHP. Please I
am waiting for the reply.


Re: Storage of Indian Language text in postgresql through PHP

From
Amitabh Kant
Date:
<div class="gmail_quote">On Tue, Jun 14, 2011 at 12:47 PM, INDER <span dir="ltr"><<a
href="mailto:inderjeetsinghit@gmail.com">inderjeetsinghit@gmail.com</a>></span>wrote:<br /><blockquote
class="gmail_quote"style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> Hello Everyone. I am new to
thisgroup and as well as to the Postgres<br /> also. Can anybody tell me that how to insert hindi text into postgres<br
/>that a user has entered from html input with the use of PHP. Please I<br /> am waiting for the reply.<br /><br
/></blockquote></div><br/>Not sure what you would have to do from PHP side, but make sure that when you are creating
thedatabase, the encoding is set to UTF8 for db to support Hindi.<br /><br />Amitabh<br /> 

Re: Storage of Indian Language text in postgresql through PHP

From
Jasen Betts
Date:
On 2011-06-14, INDER <inderjeetsinghit@gmail.com> wrote:
> Hello Everyone. I am new to this group and as well as to the Postgres
> also. Can anybody tell me that how to insert hindi text into postgres
> that a user has entered from html input with the use of PHP. Please I
> am waiting for the reply.

add this PHP before any content is emitted:

header('Content-type: text/html; charset=utf-8');

or set a web servr option that has the same effect.

-- 
⚂⚃ 100% natural
1