Forum Moderators: coopster
Now I'm trying to do the same inside a alert() function
what am I sopposed to do?
tried:
txt = "digite a c" += \u00F3 += "digo da imagem!";
atlert(txt)
if fails, object expected...
how can I show an alert message using symbols from another language (portugese) to be more specific...
in English
alert("you didn't type the image code...")
in Portuguse
alert("você não digitou o código da imagem...")
how will I add the symbols: ê, ã, ó into my message?
Help is always appreciated! ;)
alert("<?php echo [url=http://www.php.net/html-entity-decode]html_entity_decode[/url]($string); ?>");
Where
$string contains the Portuguese text. Also, make sure that the string is properly escaped when it comes to quotes.
1) código
2) código
If you have the html entity one you need to decode them before you echo it into an alert() otherwise it will not work. Otherwise echoing it should do just fine.
In my example above if you set...
$string = 'código';