Vivid Lust Posted January 17, 2010 Share Posted January 17, 2010 Hi all, Im currently getting data from a database and printing it out, the database is set to utf-8 and also the charset of the page to utf-8. In the database the foreign characters display correctly, such as éóíñ but when printed display as a � the sites just moved from a windows server to alinux one. Any ideas ? Thanks all!!! Link to comment https://forums.phpfreaks.com/topic/188777-foreign-characters-printing-as-%EF%BF%BD/ Share on other sites More sharing options...
phonydream Posted January 17, 2010 Share Posted January 17, 2010 Copy and paste some of the text into a word processor. Then, print it out from the word processor so that you can isolate whether or not it's a problem with the printer. Link to comment https://forums.phpfreaks.com/topic/188777-foreign-characters-printing-as-%EF%BF%BD/#findComment-996645 Share on other sites More sharing options...
phonydream Posted January 17, 2010 Share Posted January 17, 2010 When you say 'print', you mean physically printing on paper, right? Link to comment https://forums.phpfreaks.com/topic/188777-foreign-characters-printing-as-%EF%BF%BD/#findComment-996646 Share on other sites More sharing options...
Buddski Posted January 17, 2010 Share Posted January 17, 2010 Have a look at these 2 functions they might help you.. utf8_decode utf8_encode Link to comment https://forums.phpfreaks.com/topic/188777-foreign-characters-printing-as-%EF%BF%BD/#findComment-996647 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.