Hi,
I am having problem creating mailto links with chinese subject and message body.
Been googling around, and trying to change the fckconfig.js file. But still no luck.
I noticed that when the email link is created and view the source code, the subject of the email link has been encoded from "左侧丘脑出血后出现精神状态波" to "%E5%B7%A6%E4%BE%A7%E4%B8%98%E8%84%91%E5%87%BA%E8%A1%80%E5%90%8E%E5%87%BA%E7%8E%B0%E7%B2%BE%E7%A5%9E%E7%8A%B6%E6%80%81%E6%B3%A2&"
but if i manually replace the encoded subject to the chinese subject in source mode, in preview page , clicked on the link, the subject appears in the correct chinese characters.
Is there any settings that i can change to stop the editor to encode the subject??
I tried editing the fck_link.js, by replacing the following codes.
in the oParser.CreateEMailUri method,
i replaced :
// EMailProtection 'none'
var sBaseUri = 'mailto:' + address ;
var sParams = '' ;
if ( subject.length > 0 )
sParams = '?subject=' + encodeURIComponent( subject ) ;
if ( body.length > 0 )
{
sParams += ( sParams.length == 0 ? '?' : '&' ) ;
sParams += 'body=' + encodeURIComponent( body ) ;
}
to
// EMailProtection 'none'
var sBaseUri = 'mailto:' + address ;
var sParams = '' ;
if ( subject.length > 0 )
sParams = '?subject=' + subject ;
if ( body.length > 0 )
{
sParams += ( sParams.length == 0 ? '?' : '&' ) ;
sParams += 'body=' + body ;
}
i removed the encodeURIComponent from the method.
does this impost any security threats???
Another question,
the mailto link works in preview mode but not at the page. Am i missing out something???