Skip to main content
Inspiring
November 5, 2008
Question

How do I get Special character Euro symbol € to display ?

  • November 5, 2008
  • 1 reply
  • 3350 views
Hi,
How do I get the euro symbol € to display in Flash from PHP file created in DW ?. It does not display it properly. I have simplified the PHP code I have is:

<?php
$msgtoflash = "This is the Euro Symbol &#8364";
print ("&Databaseinfo=$msgtoflash");
?>

The &#8364 is a special character code for HTML.
If I use the $ or £ symbols it works perfectly but not € ?

Thanks,
Paul
This topic has been closed for replies.

1 reply

Inspiring
November 5, 2008
maith wrote:
> How do I get the euro symbol ? to display in Flash from PHP file created in DW
> ?. It does not display it properly. I have simplified the PHP code I have is:
>
> <?php
> $msgtoflash = "This is the Euro Symbol &#8364";
> print ("&Databaseinfo=$msgtoflash");
> ?>

Flash doesn't understand HTML numeric entitites. You need to use the
Unicode code point. Try this:

$msgtoflash = "This is the Euro Symbol: \u20AC";

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Inspiring
November 7, 2008
Mark A. Boyd wrote:
> I can't test right now, but does it help to urlencode first?
>
> $msgtoflash = urlencode("This is the Euro Symbol: \u20AC");

Variables sent to Flash should be URL-encoded, but that doesn't work.

> Or perhaps the whole response?
>
> print (urlencode("&Databaseinfo=$msgtoflash"));

That screws everything up completely. The value of the variable should
be URL-encoded, but not the = or &.

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
maithAuthor
Inspiring
November 12, 2008
Thanks Mark and David for your replys,
unfortunetly urlencode("This is the Euro Symbol: \u20AC"); does not work either.

The PHP file, is connected to mySQL database and that is where the numbers come from. Is there anything in mySQL, that I could do, to display the euro symbol ?

Thanks,
Paul