Page 1 of 1

PHP special ASCII decoding

Posted: Wed Mar 24, 2010 10:21 am
by Thantos
I am making a dynamic pdf using FPDF and mssql database. When students register they can use a rich text box that allows things such as &rsqou; and β. I use html_entity_decode that catches most of the characters, but things like a Greek beta and right and left single and double quotes are not caught. Right now I handle them all by hand doing a replace on all non handled characters. Is there any way to decode all ASCII characters?

Re: PHP special ASCII decoding

Posted: Wed Mar 24, 2010 11:43 am
by Weirdan
Thantos wrote:I use html_entity_decode that catches most of the characters, but things like a Greek beta and right and left single and double quotes are not caught.
They are not a part of original ASCII character set. What you mean by ASCII is probably one of 'extended ascii' character sets, most probably latin1. And β is not a part of it anyway - you're confusing it for German Eszett.