Home > Archive > PHP on Windows > February 2007 > Re: [PHP-WIN] Question re. PHP/HTML-generated French characters.
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: [PHP-WIN] Question re. PHP/HTML-generated French characters.
|
|
| Niel Archer 2007-02-09, 7:01 pm |
| Hi
> This is to ask a (possibly rudimentary) question re. specifying French=20
> language characters to be displayed on an HTML page generated from PHP. =
In=20
> this case, the browser does not show the Fran=E7ais chars. (accents etc.)=
=20
> properly. Possibly one of those ultimately straightforward (yet=20
> personally-elusive) issues to resolve.
>=20
> Does anyone in the PHP community have any experience with specifying supp=
ort=20
> for extended charsets on HTML-generated pages from PHP - or can suggest a=
=20
> link to a site where this is documented? If so, I would appreciate some=
=20
> direction with it. Thanks very much in anticipation of your time and=20
> response.
This may involve several steps. Firstly, what encoding are the html
pages sent as? If that encoding is not capable of showing the
characters, then obviously they will not be shown. In general I would
use UTF-8 encoding for all pages, considering the international nature
of the web, this allows for any characters you might want to show.
Another method is to output all of your text using htmlentities() to
convert characters into their entity form (e.g. & for ampersand,
á for a with acute accent, etc.)
You can combine both methods also.
Further information on this is in the PHP documentation.
Niel
| |
| bedul 2007-02-11, 10:00 pm |
| i'm just add the niel
don't forget for the HTML header.
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"
lang="fr"
/>
this header are self explain..
i mean here.. this tag mean to explain about the html/page u write..
there was some browser.. which can't read the entities correctly (named OLD
browser one). with this.. the browser might know the write/the font u use
sry.. for my languages
cmiiw..
----- Original Message -----
From: "Niel Archer" <niel@catweasel.org>
To: <php-windows@lists.php.net>
Sent: Saturday, February 10, 2007 1:10 AM
Subject: Re: [PHP-WIN] Question re. PHP/HTML-generated French characters.
Hi
> This is to ask a (possibly rudimentary) question re. specifying French
> language characters to be displayed on an HTML page generated from PHP.
In
> this case, the browser does not show the Français chars. (accents etc.)
> properly. Possibly one of those ultimately straightforward (yet
> personally-elusive) issues to resolve.
>
> Does anyone in the PHP community have any experience with specifying
support
> for extended charsets on HTML-generated pages from PHP - or can suggest a
> link to a site where this is documented? If so, I would appreciate some
> direction with it. Thanks very much in anticipation of your time and
> response.
This may involve several steps. Firstly, what encoding are the html
pages sent as? If that encoding is not capable of showing the
characters, then obviously they will not be shown. In general I would
use UTF-8 encoding for all pages, considering the international nature
of the web, this allows for any characters you might want to show.
Another method is to output all of your text using htmlentities() to
convert characters into their entity form (e.g. & for ampersand,
á for a with acute accent, etc.)
You can combine both methods also.
Further information on this is in the PHP documentation.
Niel
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|
|
|
|
|