nashman Posted November 15, 2011 Share Posted November 15, 2011 Hi friends, I need assistance with making russian fonts displayable in the system emails that are being sent to my auction website users. Any reason the russian fonts I have entered below are displayed the way they are. Please also note I am brand new in PHP and simple llingo would be appreciated. Regards, <? ## Email File -> email an auction to a friend ## called only from the $item->auction_friend() function! ## File Version -> v6.10 if ( !defined('INCLUDED') ) { die("Access Denied"); } //$sender_details = $this->get_sql_row("SELECT u.name, u.email FROM " . DB_PREFIX . "users u WHERE u.user_id='" . $user_id . "'"); $send = true; // always sent; ## text message - editable $text_message = 'Dear %1$s, Your friend, %2$s, has forwarded an auction, posted on %3$s for you to look at. To view the details of the auction, please click on the URL below: %4$s Additional comments: %5%s Best regards, The %6$s staff'; ## html message - editable $html_message = 'Дорогой (аÑ) %1$s, <br> <br> Ваш друг, %2$s, отправил на Ваше раÑÑмотрение Ðукцион, выÑтавленный на %3$s. <br> <br> [ <a href="%4$s">Ðажмите здеÑÑŒ</a> ] чтобы проÑмотреть Ñтот Ðукцион. <br> <br> Дополнительные комментарии: %5$s <br> <br> С Уважением, <br> %6$s <br> <br> <br> Dorogoy (aya) %1$s, <br> <br> Vash drug, %2$s, otpravil na Vashe rassmotreniye Auktsion, vistavlenniy na %3$s. <br> <br> [ <a href="%4$s">Najmite zdes</a> ] chtobi prosmotret etot Auktsion. <br> <br> Dopolnitelniye kommentarii: %5$s <br> <br> S Uvajeniyem, <br> %6$s'; $auction_link = process_link('auction_details', array('name' => $item_details['name'], 'auction_id' => $item_details['auction_id'])); $text_message = sprintf($text_message, $friend_name, $sender_name, $this->setts['sitename'], $auction_link, $comments, $this->setts['sitename']); $html_message = sprintf($html_message, $friend_name, $sender_name, $this->setts['sitename'], $auction_link, $comments, $this->setts['sitename']); send_mail($friend_email, 'Проверьте Ñтот Ðукцион', $text_message, $this->setts['admin_email'], $html_message, $sender_name, $send); ?> Quote Link to comment https://forums.phpfreaks.com/topic/251173-need-assistance-with-russian-fonts-in-my-auction-site-system-emails/ Share on other sites More sharing options...
nashman Posted November 15, 2011 Author Share Posted November 15, 2011 <? ## Email File -> email an auction to a friend ## called only from the $item->auction_friend() function! ## File Version -> v6.10 if ( !defined('INCLUDED') ) { die("Access Denied"); } //$sender_details = $this->get_sql_row("SELECT u.name, u.email FROM " . DB_PREFIX . "users u WHERE u.user_id='" . $user_id . "'"); $send = true; // always sent; ## text message - editable $text_message = 'Dear %1$s, Your friend, %2$s, has forwarded an auction, posted on %3$s for you to look at. To view the details of the auction, please click on the URL below: %4$s Additional comments: %5%s Best regards, The %6$s staff'; ## html message - editable $html_message = 'Дорогой (аÑ) %1$s, <br> <br> Ваш друг, %2$s, отправил на Ваше раÑÑмотрение Ðукцион, выÑтавленный на %3$s. <br> <br> [ <a href="%4$s">Ðажмите здеÑÑŒ</a> ] чтобы проÑмотреть Ñтот Ðукцион. <br> <br> Дополнительные комментарии: %5$s <br> <br> С Уважением, <br> %6$s <br> <br> <br> Dorogoy (aya) %1$s, <br> <br> Vash drug, %2$s, otpravil na Vashe rassmotreniye Auktsion, vistavlenniy na %3$s. <br> <br> [ <a href="%4$s">Najmite zdes</a> ] chtobi prosmotret etot Auktsion. <br> <br> Dopolnitelniye kommentarii: %5$s <br> <br> S Uvajeniyem, <br> %6$s'; $auction_link = process_link('auction_details', array('name' => $item_details['name'], 'auction_id' => $item_details['auction_id'])); $text_message = sprintf($text_message, $friend_name, $sender_name, $this->setts['sitename'], $auction_link, $comments, $this->setts['sitename']); $html_message = sprintf($html_message, $friend_name, $sender_name, $this->setts['sitename'], $auction_link, $comments, $this->setts['sitename']); send_mail($friend_email, 'Проверьте Ñтот Ðукцион', $text_message, $this->setts['admin_email'], $html_message, $sender_name, $send); ?> Quote Link to comment https://forums.phpfreaks.com/topic/251173-need-assistance-with-russian-fonts-in-my-auction-site-system-emails/#findComment-1288297 Share on other sites More sharing options...
nashman Posted November 16, 2011 Author Share Posted November 16, 2011 hey guys, could please anyone take a look at this request. It is kind of urgent and I am running out of time. Cheers Quote Link to comment https://forums.phpfreaks.com/topic/251173-need-assistance-with-russian-fonts-in-my-auction-site-system-emails/#findComment-1288533 Share on other sites More sharing options...
nashman Posted November 16, 2011 Author Share Posted November 16, 2011 was really really hoping for some kind of resolution here...but Quote Link to comment https://forums.phpfreaks.com/topic/251173-need-assistance-with-russian-fonts-in-my-auction-site-system-emails/#findComment-1288577 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.