[PHP] Word and UTF-8 (cyrillic, chinese, ...)
Hi there, I am currently struggling in forcing Word to show a UTF-8 encoded document. The generated document is a normal web page with generated content from a mysql database. When I remove the header commands, the document with proper russian characters is displayed fine in the browser, but when I add [CODE] header ("Content-Type: application/vnd.ms-word;charset=utf-8"); header ("Content-Disposition: attachment;filename=questionnaire_".date("Ymd_his").".doc"); [/CODE] , Word opens and displays the information as chinese letters instead of russian. This also happens for spanish and french special characters, they are also incorrectly displayed. Any clues how I can force Word to display UTF-8 correctly? Thanks a lot in advance! Best regards, Sascha -- Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 - sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Saving and mailing remote file
Hi there! I need to email linked files (URLs are retrieved from a database) with PHP but after I downloaded the remote file through my script the downloaded file headers are always damaged ( I tried to download pdf and zip files). Could one of you help me in saving the remote file to the local webserver? The delivery of the mail with attachment already works fine ... Thank you in advance! Sascha -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Antwort: RE: [PHP] Saving and mailing remote file
Hi again, I need to download a remote file (e.g. some linked pdf document on another server) and send this file to a defined user. I don't know if there is a way to attach a remote file to an email (I don't want to send a link to the above mentioned file, but the file itself...) Sascha -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Antwort: RE: Antwort: RE: [PHP] Saving and mailing remote file
Hi Jay, that's exactly what I need to accomplish (as I mentioned: I wanted to download the file to the webserver - which means saving the file locally, cause that's where the script resides - and then send it to the email recipient). I need to find a way to download the file itself, the rest is - as I said before - fairly simple (attaching the file to a mail will be handled by the Mail class). Anyway, thanks for your time! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php