GVKun编程网logo

织梦UTF8版本ckeditor中多图发布按钮乱码解决方案(织梦currentstyle)

18

以上就是给各位分享织梦UTF8版本ckeditor中多图发布按钮乱码解决方案,其中也会对织梦currentstyle进行解释,同时本文还将给你拓展ASP.NETMVC富文本Ueditor编辑后台传值前

以上就是给各位分享织梦UTF8版本ckeditor中多图发布按钮乱码解决方案,其中也会对织梦currentstyle进行解释,同时本文还将给你拓展ASP.NET MVC 富文本Ueditor编辑 后台传值前端乱码解决方案、big5转utf-8乱码解决方案、CentOS 5.5下打开Oracle的dbconsole按钮乱码解决方案、CKEditor 发布 SharePoint 集成解决方案等相关知识,如果能碰巧解决你现在面临的问题,别忘了关注本站,现在开始吧!

本文目录一览:

织梦UTF8版本ckeditor中多图发布按钮乱码解决方案(织梦currentstyle)

织梦UTF8版本ckeditor中多图发布按钮乱码解决方案(织梦currentstyle)

 

*近在使用织梦utf8 v5.7版本时,编辑新闻时发现ckeditor编辑器的“多图发布”当鼠标放到按钮上时,提示文字是乱码 ,如下图:

而织梦gbk版本却很正常,正常的提示文字如下图:

织梦UTF8版本ckeditor中多图发布按钮乱码解决方案

之后从本地PC又安装了几个utf8版本的织梦,发现都出现了这样的问题 ,这可能是织梦utf8版本的小bug ,其实解决这个问题很简单,出现这个乱码说明本来需要是utf的文件现在是gbk,只要找到ckeditor编辑器控制多图发布按钮的文件,把文件由gbk代码改成utf就可以了。下面说一下具体操作步骤。

1、首先 ,用dreamweaver(dreamweaver视频教程)打开网站根目录includeckeditorpluginsmultipicplugin.js 。

2、点击导航栏“修改”——页面属性,在打开的页面属性窗口,把文档编码选择成utf-8,如下图所示。

3、之后保存,就完成了,简单吧。

4、完成上面代码更改后,你登录后台可能看到“多图发布”按钮的提示文字还是乱码,这是因为浏览器缓存的原因,需要你清空一下浏览器缓存,以360浏览器为例,点击导航栏“工具”——清除上网痕迹,如下图:

打开清除上网痕迹窗口,点“立即清理”。如下图:

清理完成后,再登录织梦后台,“多图发布”的提示文字就恢复正常了。

本文章网址:http://www.ppssdd.com/code/14460.html。转载请保留出处,谢谢合作!

ASP.NET MVC 富文本Ueditor编辑 后台传值前端乱码解决方案

ASP.NET MVC 富文本Ueditor编辑 后台传值前端乱码解决方案

 

只是将当前内容String当成Html插入,我想是跟数据类型转换差不多

//把内容赋值给ueditor var ue = UE.getEditor(editor);//实例化 ue.ready(function() {//加载时 ue.setContent( @Html.Raw(Model.Content));//后台传值前端乱码解决方案 });

big5转utf-8乱码解决方案

big5转utf-8乱码解决方案

<?php
//生成big5-unicode 编码文件
function loadBig5(){
    $fp = fopen( ''./big5-unicode.txt'', ''r'' );
    $big5_unicode_arr = array();
    while($one_line = fgets($fp)) {
        $one_line_arr = explode("\t",$one_line);
        $big5 = hexdec(trim($one_line_arr[0]));
        $unicode = trim($one_line_arr[1]);
        if(strpos($unicode,'','')) {
            $unicode = ltrim(explode('','',$unicode)[0],''<'');
        }
        
        $big5_unicode_arr[$big5] = hexdec($unicode);
    }
    
    return $big5_unicode_arr;
}

//追加形式写入文件
function putContent($content) {
    static $fp;
    if(!isset($fp)) {
        $fp = fopen( ''./big5-unicode-new.tab'', ''a+'' );
    }
    
    fwrite($fp,$content);
}

//生成tab文件
function writebig5UnicodeFile() {
    $big5_unicode_arr = loadBig5();
    $big5_unicod_content = array();
    $min = 2000;
    $max = 0;
    $max_unicode = 0;
    foreach($big5_unicode_arr as $big5 => $unicode) {
        $h = floor($big5/256);
        $l = $big5%256;
        $index = ($h-135)*256*3+$l*3;
        
        if($index<$min) {
            $min = $index;
        }
        
        if($max<$index) {
            $max = $index;
        }
        
        if($unicode>$max_unicode) {
            $max_unicode = $unicode;
        }
        
        $h_1 = floor($unicode/65536);
        $h_2 = floor($unicode/256);
        $h_3 = $unicode%256;
        
        $big5_unicod_content[$index] = chr($h_1).chr($h_2).chr($h_3);
    }
    
    for($i=0;$i<=$max;$i=$i+3) {
        if(!isset($big5_unicod_content[$i])) {
            $big5_unicod_content[$i] = chr(0).chr(0).chr(0);
        }
    }
    
    for($i=0;$i<=$max;$i=$i+3) {
        if(strlen($big5_unicod_content[$i]) == 3) {
            putContent($big5_unicod_content[$i]);
        }else{
            die(''error'');
        }
    }
}

//测试编辑结果
function testCode() {
    $content = file_get_contents( ''./temlate_2.html'');
    echo b2u($content);
}

//打印出编码库文字
function printfCode() {
    $fp = fopen( ''./big5-unicode-new.tab'', ''r'' );
    $len = filesize(''./big5-unicode-new.tab'');
    $x = 0;
    $outstr = array();
    //     fseek( $fp, 21000 - 900 + 42*3);
    for($i=$x=0;$i<$len;$i=$i+3) {
        $uni = fread( $fp, 3 );
        $codenum = ord($uni[0])*65536 + ord($uni[1])*256 + ord($uni[2]);
        if($codenum == 0) {
            $outstr[$x++] = '' '';
        }elseif( $codenum < 0x80 ) {
            $outstr[$x++] = chr($codenum);
        }elseif($codenum < 0x800) {
            $outstr[$x++] = chr( 192 + $codenum / 64 );
            $outstr[$x++] = chr( 128 + $codenum % 64 );

        }elseif($codenum < 0x10000){
            $outstr[$x++] = chr( 224 + floor($codenum / 4096 ));
            $codenum = $codenum%4096;
            $outstr[$x++] = chr( 128 + floor($codenum / 64 ));
            $outstr[$x++] = chr( 128 + ($codenum % 64) );
        }else{
            $outstr[$x++] = chr( 240 + floor($codenum / 262144 ));
            $codenum = $codenum%262144;
            $outstr[$x++] = chr( 128 + floor($codenum / 4096 ));
            $codenum = $codenum%4096;
            $outstr[$x++] = chr( 128 + ($codenum / 64) );
            $outstr[$x++] = chr( 128 + ($codenum % 64) );
        }
    }

    echo join( '''', $outstr);
}

//big5 转 utf-8
function b2u( $instr ) {
    $fp = fopen( ''./big5-unicode-new.tab'', ''r'' );
    $len = strlen($instr);
    $outstr = '''';
    for( $i = $x = 0 ; $i < $len ; $i++ ) {
        $h = ord($instr[$i]);
        if( $h >= 135 ) {
            $l = ord($instr[$i+1]);
            
            fseek( $fp, ($h-135)*256*3+$l*3 );
            $uni = fread( $fp, 3 );
            
            $codenum = ord($uni[0])*65536 + ord($uni[1])*256 + ord($uni[2]);
            
            if($codenum == 0) {
                $outstr[$x++] = '' '';
            }elseif( $codenum < 0x80 ) {
                $outstr[$x++] = chr($codenum);
            }elseif($codenum < 0x800) {
                $outstr[$x++] = chr( 192 + $codenum / 64 );
                $outstr[$x++] = chr( 128 + $codenum % 64 );
                
            }elseif($codenum < 0x10000){
                $outstr[$x++] = chr( 224 + floor($codenum / 4096 ));
                $codenum = $codenum%4096;
                $outstr[$x++] = chr( 128 + floor($codenum / 64 ));
                $outstr[$x++] = chr( 128 + ($codenum % 64) );
            }else{
                $outstr[$x++] = chr( 240 + floor($codenum / 262144 ));
                $codenum = $codenum%262144;
                $outstr[$x++] = chr( 128 + floor($codenum / 4096 ));
                $codenum = $codenum%4096;
                $outstr[$x++] = chr( 128 + ($codenum / 64) );
                $outstr[$x++] = chr( 128 + ($codenum % 64) );
            }
            $i++;
        }
        else
            $outstr[$x++] = $instr[$i];
    }
    fclose($fp);
    if( $instr != '''' )
        return join( '''', $outstr);
}

//第一步:生成tab文件,生成时要保证tab文件不存在才可以
writebig5UnicodeFile();

//第二步:指定页面转码测试
testCode();

//第三步:打印出文字库
printfCode();

//备注:
//整个方案打包文件:http://pan.baidu.com/s/1miKpEfI
//能用就留下言,谢谢


CentOS 5.5下打开Oracle的dbconsole按钮乱码解决方案

CentOS 5.5下打开Oracle的dbconsole按钮乱码解决方案

CentOS 5.5下打开Oracle的dbconsole按钮乱码解决方案:1. 先停止 OEMemctl stop dbconsole2. 分别进入以下三个路径$ORACLE_HOME/

CentOS 5.5下打开Oracle的dbconsole按钮乱码解决方案:

1. 先停止 OEM
emctl stop dbconsole

2. 分别进入以下三个路径
$ORACLE_HOME/jdk/jre/lib
$ORACLE_HOME/jre/1.4.2/lib
$ORACLE_HOME/javavm/lib/ojvmfonts

3. 在每个目录都透过以下指令覆盖档桉
cp font.properties.zh_CN.RedHat font.properties

4. 最后一步,也是最重要的一步:

打开刚才随便那个目录下的font.properties,看最后一行的字体文件位置,如:

filename.-misc-zysong18030-medium-r-normal--*-%d-*-*-c-*-iso10646-1=/usr/share/fonts/zh_CN/TrueType/zysong.ttf

接下来检查有没有这个目录和文件,没有的话就创建之,/usr/share/fonts/zh_CN/TrueType/zysong.ttf,如果没有zysong.ttf这个字体,那随便搞一个中文字体改成这个名字即可。

5. 进入 OEM 的图示路径,清除之前的缓存
cd $ORACLE_HOME/oc4j/j2ee/oc4j_applications/applications/em/em/cabo/images/cache/zht
rm *.gif
rm *.imx

6. 启动 OEM
emctl start dbconsole

linux

CKEditor 发布 SharePoint 集成解决方案

CKEditor 发布 SharePoint 集成解决方案

CKEditor 发布了免费版的 CKEditor for SharePoint, 这是一个独特的解决方案,用以集成到微软 SharePoint 平台上替换原有的编辑器做为所见即所得的编辑器。

CKEditor for SharePoint 主要特性有:

  • 兼容 SharePoint 2007 和 SharePoint 2010.
  • 易于安装和升级
  • 可在 SharePoint 的管理页面中进行配置
  • 自动替换默认的 SharePoint 编辑器(多处使用非可视化编辑器的页面)
  • 包含 CKFinder ,用户可方便管理各种媒体文件
  • 带来友好的用户体验:
    • Support for the powerful “Paste from Word” feature
    • Fully configurable and robust styling system
    • Top quality XHTML output generation
    • Full (and usable) accessibility support for the entire interface
    • Compatibility with Internet Explorer, Firefox, Safari, Chrome and Opera
    • ... and much more!

免费下载:

  • for SharePoint 2007  (安装指南)
  • for SharePoint 2010  (安装指南)

附录:

Windows SharePoint,是微软制作的一款用于Windows Server 2003的免费附加(增值)软件,它提供了基本的门户网站和企业内网功能。它包括由web部件(由ASP.NET开发)组成的叫作web 部件页面的门户页面,团队站点,文档库以及项目子站点,带有版本控制的文档存储空间,以及基本的搜索功能。它的前端是一个运行于Internet Information Services 6.0之上的ASP.NET 网站,后端由SQL Server或者MSDE来存储数据。

Windows SharePoint Services同时也是Microsoft Office SharePoint Portal Server和Microsoft Office Project Server的基础。Office SharePoint Portal Server是Windows SharePoint Services的企业版,并不像WSS一样是免费的。

关于织梦UTF8版本ckeditor中多图发布按钮乱码解决方案织梦currentstyle的问题就给大家分享到这里,感谢你花时间阅读本站内容,更多关于ASP.NET MVC 富文本Ueditor编辑 后台传值前端乱码解决方案、big5转utf-8乱码解决方案、CentOS 5.5下打开Oracle的dbconsole按钮乱码解决方案、CKEditor 发布 SharePoint 集成解决方案等相关知识的信息别忘了在本站进行查找喔。

本文标签: