PHP special ASCII decoding

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Thantos
Forum Newbie
Posts: 1
Joined: Wed Mar 24, 2010 10:12 am

PHP special ASCII decoding

Post 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?
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: PHP special ASCII decoding

Post 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.
Post Reply