Html special characters and the accented characters

BOB KUSPE
BOB KUSPE used Ask the Experts™
on
Dear all

Well, it is a headache... What I do for reading accented characters in a textarea, for examples, of a webpage with source code sourece caracters and any metatag regarding the ". ISO".

URL: http://www.filosofia.org/rev/bas/bas20101.htm


del descubrimiento, en tanto éste no puede hacerse consistir en un acto instantáneo de conocimiento, en una especie de revelación súbita. Cuando el explorador descubre una nueva senda en la selva, valiéndose de su machete, las perspectivas que descubre conspectivamente implican a su vez resoluciones o disposiciones sobre el terreno recorrido. Más aún: como es imposible prácticamente en

Open in new window


Thank you in advance for any advice.

Bob
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Serena HsiMarketing Consultant

Commented:
What is the question here? Are you asking for text-to-speech readers or for ASCII help on converting text to accented characters?

Author

Commented:
I am asking for help on converting text to accented characters:

For example:

aacute; to á
eacute; to é
iacute; to í
oacute; to ó
uacute; to ú

Best regards

Bob
Well, javascript already knows how to translate those. See fiddle.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Most Valuable Expert 2017
Distinguished Expert 2018
Commented:
<?php
$x = "del descubrimiento, en tanto &eacute;ste no puede hacerse consistir en un acto instant&aacute;neo de conocimiento, en una especie de revelaci&oacute;n s&uacute;bita. Cuando el explorador descubre una nueva senda en la selva, vali&eacute;ndose de su machete, las perspectivas que descubre conspectivamente implican a su vez resoluciones o disposiciones sobre el terreno recorrido. M&aacute;s a&uacute;n: como es imposible pr&aacute;cticamente en";
echo html_entity_decode($x);

Open in new window

html_entity_decode()

Author

Commented:
Hi,

I want this code in ASP or PHP, but I found it in Javascript:

Example:

onClick="replaceFormFields(this.form,'oacute;','ó');

Open in new window


Thanks

Author

Commented:
Yes, Julian

I love PHP although I am a newby. Simple and efficient

Author

Commented:
Many thanks
Most Valuable Expert 2017
Distinguished Expert 2018

Commented:
You are welcome.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial