PHP special ASCII decoding
Moderator: General Moderators
PHP special ASCII decoding
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
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.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.