"Tell a friend" message doen't support UTF8

Register an Account
Pligg Chat Room
Reply
 
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
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
Reply With Quote
Reply

Tags
email tellafriend utf8

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
PliggMo by nadia - Fully support UTF8 language (Thai) ♥ไทยจ้า♥ Techkr Questions and Comments 6 06-20-2009 10:25 AM
Fixed : UTF8 Email title for "tell a friend" and "send announment module" leosophy Questions and Comments 2 02-06-2009 09:59 PM
"Tell a friend" doesn't work on pligg 0.995 version leosophy Questions and Comments 6 10-06-2008 08:58 PM
Receiving error message Fatal error: PCRE is not compiled with UTF-8 support in /hom wesheets Questions and Comments 2 11-12-2007 11:05 PM
"Tell a friend" cann't support chinese words haxhax Questions and Comments 2 02-18-2007 02:12 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development