Subject RE: [Firebird-Java] Re: Unicode characters vs ibexpert, php and java
Author Rick Debay
The character encoding should be sent in the HTTP header, don't depend
on META tags.

http://www.w3.org/International/O-HTTP-charset
"For PHP, use the header() function before generating any content, e.g.:
header("Content-Type: text/html; charset=utf-8");"

You should also make sure the other headers are set correctly, such as
Content-Language if the page is specific to one or more languages.

-----Original Message-----
From: Firebird-Java@yahoogroups.com
[mailto:Firebird-Java@yahoogroups.com] On Behalf Of nagypapi
Sent: Monday, May 23, 2005 10:11 AM
To: Firebird-Java@yahoogroups.com
Subject: [Firebird-Java] Re: Unicode characters vs ibexpert, php and
java

First I tried the <form accept-charset="utf-8"> didn't work then I tried
the utf8_encode function in php, didn't work, guess because it encodes
iso8859-1 and maybe the weather wasn't really
iso8859-1 at that moment
I read your message again, and inserted a META tag in my doc, and it
works as intended.
Thanks a lot!
John

--- In Firebird-Java@yahoogroups.com, Jim Starkey <jas@n...> wrote:
> nagypapi wrote:
>
> > Hy List!
> >
> > I have started using Firebird(1.5.2) through php (currently with
> > IBWebAdmin, but i'll write my own code later too) and java
(jaybird 1.5.5)
> >
> I assume the data is originating from a brower form. Unless the
> encoding is explicitly set in an http header or an html <meta> tag,
> the browser will enclode data based on the relative humidity and the
> phase of the moon. If you aren't currently generating an explicit
> coding, I suggest you set it to utf-8.
>
> --
>
> Jim Starkey
> Netfrastructure, Inc.
> 978 526-1376





Yahoo! Groups Links