Pligg CMS Forums


Go Back   Pligg CMS Forum > Pligg Development > Bug Report



"Tell a friend" message doen't support UTF8

Found or fixed a small bug in Pligg? Post it here so we can update appropriately.


 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-10-2008, 06:24 AM
New Pligger
Pligg Version: 0.98
 
Join Date: Sep 2008
Posts: 7
Unhappy "Tell a friend" message doen't support UTF8

Find out the bug of "tell a friend".

When the recommend_small.tpl pass the $message to recommend.php. Such UTF8 code will changed to the following format:
%u6211..... something.

The problems is , the Email content will be tread such UTF8code into real characters.

I have done the following converting(%u{number} change to html representation
Code:
$message = preg_replace("/%u(\w+)/e", "'&#'.hexdec('\\1').';'", $message);
Then %u6211 will changed to a chinese word "我"

But I can't display on the Email message... Please help
 

Tags
email tellafriend utf8

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
I need help to resolve "Tell a Friend" functionality slick33 General Help 1 08-13-2008 08:14 PM
Receiving error message Fatal error: PCRE is not compiled with UTF-8 support in /hom wesheets Installation and Upgrade Help 2 11-12-2007 11:05 PM

Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Use the coupon code PLIGG at Dreamhost.com to receive a discount of up to $84.00 Make a donation to support Pligg CMS development