...">

'' É == '' é, but on which coding / reference?

I have a ColdFusion script that does:

<cfset content = replace(content,"&##147;","""","all")>

      

What replaces &147;

with "

. Google understands this too, if you type &#145; &#147; &#233;

in your search box, it converts on the page to ‘ " é"

.

If I searched é

this page for HTML Entity Character Lookup it will return me &#233;

. But they

also "

do not return 145 and 147.

So the question is, what is a numeric reference, character encoding, or something else being used here by ColdFusion? Where can I see what 145 cards are on

, 147 cards on "

and are 233

displayed on é

?

Bonus thanks if someone provides a page that lists these characters (since more replaced with script).

Edit: Haywend made me realize that I was typing the wrong characters because my browser (Opera) was rendering them badly, so now I am using Firefox to edit this question, and hopefully it will be clear :)

Greetings,

+2


source to share


4 answers


Found. Windows-1252 . Took me for a long time, but thanks to everyone who tried to help :)



+1


source


If you are on Windows, you can use CHARMAP.EXE to get these codes.

Html objects can represent characters by its numeric reference (for example, the ones you have and can see on the Symbol Map) or an alias like & lt; for <,> for>, & for ", etc.



Here is the list: http://www.w3schools.com/tags/ref_entities.asp

+1


source


+1


source


If you are working with ASP.NET, you can use the HttpUtility class as shown below:

string s = System.Web.HttpUtility.HtmlDecode(content);

      

For more information: http://msdn.microsoft.com/en-us/library/System.Web.HttpUtility(v=vs.110).aspx

0


source







All Articles