Re: Question re. PHP/HTML-generated French characters.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux