Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

‘ “ é == ‘ “ é, but on what encoding/reference?

I have a ColdFusion script that does:

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

Which replaces &147; by ". Google understands this too, if you type &#145; &#147; &#233; at its search box its transformed on the results page to ‘ “ é".

If I search for é on this HTML Entity Character Lookup page, it'll return &#233; to me. But and doesn't return 145 and 147.

So the question is, what's the numeric reference, character encoding, or whatever else, is being used here by ColdFusion? Where can I see that 145 maps to , 147 maps to and 233 maps to é?

Bonus thanks if someone provides a page listing these characters (since more are replaced on the script).

Edit: Havenard made me realize I was typing the wrong characters because my browser (Opera) was displaying them badly, so now I'm using Firefox to edit this question, and hopefully it'll be clear :)

Cheers,

like image 849
inerte Avatar asked Feb 15 '26 19:02

inerte


2 Answers

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

like image 90
inerte Avatar answered Feb 18 '26 18:02

inerte


Maybe something like this?

http://www.w3schools.com/TAGS/ref_urlencode.asp

like image 42
Gavrisimo Avatar answered Feb 18 '26 18:02

Gavrisimo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!