for example when i retrieve from database the word program’s instead of program’s what would be shown is program�s. ‘ and – changes to �. how can i fix this?
for example when i retrieve from database the word program’s instead of program’s what
Share
You are treating cp-1252 as iso-8859-1. A very common mistake. Use utf-8, which is standardised, or validate input to assure that the user gives you valid iso-8859-1, when he says so. In cases where you don’t (eg. you get cp-1252), you can transliterate the input to iso-8859-1.