convert ASCII to ISO-Latin-1 eq

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
User avatar
jazz090
Forum Contributor
Posts: 176
Joined: Sun Apr 12, 2009 3:29 pm
Location: England

convert ASCII to ISO-Latin-1 eq

Post by jazz090 »

im am accepting some POST data from forms and want to check for any non-ascii charachters which is no problem but then i want to be able to convert them to iso-laatin-1 which is their numerical respresentation and can be embeded in html using &#xxxx, JAVA seems to give this value using String.charCodeAt() but equivelent of this is the decimal in php but php fails yo convert some of the hexadecimals into true decimals, any ideas?
Post Reply