Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #18369
| From | cb <cb@ppt.io.it> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | display "national" characters |
| Date | 2020-10-03 11:46 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <rl9ha9$16en$1@gioia.aioe.org> (permalink) |
I have a field (from DB) that contains
Andr%C3%A9
I would like to show it as
André
I'm very poor in php, but after much googling my "best" is the following
-------------------------------------------------------------------------------
<!DOCTYPE html>
<!-- html lang="en" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
</head>
<body>
<?php
$t="Andr%C3%A9";
echo (utf8_decode("$t")."<br>\n");
echo ("I would expect:André:<br>");
?>
</body>
</html>
-------------------------------------------------------------------------------
:-(
Can someone help me ?
TIA
Back to comp.lang.php | Previous | Next — Next in thread | Find similar | Unroll thread
display "national" characters cb <cb@ppt.io.it> - 2020-10-03 11:46 +0200
Re: display "national" characters Jan Hansen <jan_hansen@sniper-pistol.com> - 2020-10-03 13:13 +0200
Re: display "national" characters cb <cb@ppt.io.it> - 2020-10-03 17:04 +0200
csiph-web