百度首页 | 百度空间
 
查看文章
 
[软件开发]-ASP.NET 应用FCKeditor实践的一点记录&Delphi GB转换为Unicode-2007.08.02
2007-08-02 15:55
作者:Tank http://hi.baidu.com/uroot
1.FCKeditor:
基于javascript的HTML在线编辑器.当前版本2.4.3

解决链接上传的Image文件时,中文文件名乱码问题:
fckeditor\editor\filemanager\browser\default\frmresourceslist.html 文件中,修改如下
function OpenFile( fileUrl )
{
window.top.opener.SetUrl( escape(fileUrl) ) ;
//    window.top.opener.SetUrl( encodeURI( fileUrl ) ) ;
    window.top.close() ;
    window.top.opener.focus() ;
}

2.Delphi 代码.GB2Unicode
function GB2UniCode(Value:WideString):string;
var
I, Len:Integer;
S:string;
begin
Result := '';
Len := Length(Value);
I := 1;
while I <= Len do
begin
    FmtStr(S, '%%u%4.4X', [ord(Value[I])]);
    Result := Result + S;
    Inc(I);
end;
end;

类别:软件开发 | 添加到搜藏 | 浏览() | 评论 (1)
 
网友评论:
1
2007-08-03 21:47
哇咔咔~~这里这么多IT有为青年啊!
 
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码:
 

     

©2008 Baidu