vtiger crm 中文crm 为什么输入中文会出现问号

1038人阅读
VtigerCRM5.4(9)
导入数据文件CSV中文乱码修正:
在Smarty/templates/ImportStep1.tpl中的第99行插入&option value=&GB2312&&GB2312&/option&
&select name=&format& class=&small&&
&!-- value must be a known format for mb_convert_encoding() --&
&option value=&GB2312&&GB2312&/option&//插入一行
&option value=&ISO-8859-1&&ISO-8859-1&/option&
&option value=&UTF-8&&UTF-8&/option&
很多查找到的资料都是下面的写法:
&select name=&format& class=&small&&
&!-- value must be a known format for mb_convert_encoding() --&
&option value=&GBK&&GBK&/option& // &&插入一行
&option value=&ISO-8859-1&&ISO-8859-1&/option&
&option value=&UTF-8&&UTF-8&/option&
再修改modules/Import/resources/Utils.php中的第21行
static $supportedFileEncoding = array('UTF-8'=&'UTF-8','ISO-8859-1'=&'ISO-8859-1'); 修改为:static $supportedFileEncoding = array('UTF-8'=&'UTF-8','GBK'=&'GBK','ISO-8859-1'=&'ISO-8859-1'); 添加了GBK的数组,smarty再引用这个的数组的值。
原理说明:
导入时的程序执行的是先用了\Smarty\templates\modules\Import\ImportBasic.tpl 然后再引入不同的tpl文件
&tr& &td class=&leftFormBorder1& width=&60%& valign=&top&&
{include file='modules/Import/Import_Step1.tpl'} //第1步 &/td&
&td class=&leftFormBorder1& width=&40%& valign=&top&& {include file='modules/Import/Import_Step2.tpl'} //第2步 &/td& &/tr&
&tr& &td class=&leftFormBorder1& colspan=&2& valign=&top&& {include file='modules/Import/Import_Step3.tpl'} //第3步 &/td& &/tr&
&tr& &td align=&right& colspan=&2&& {include file='modules/Import/Import_Basic_Buttons.tpl'} &/td& &/tr&
再调用了modules/Import/Import_Step2.tpl
第34行代码如下:&select name=&file_encoding& id=&file_encoding& class=&small&& {foreach key=_FILE_ENCODING item=_FILE_ENCODING_LABEL from=$SUPPORTED_FILE_ENCODING} &option value=&{$_FILE_ENCODING}&&{$_FILE_ENCODING_LABEL|@getTranslatedString:$MODULE}&/option& &!--这里是数据类型--& {/foreach}&/select&&导入原理解释:把gbk编码转为UTF-8。刚说的和5.3的区别在于,他分成多个文件了,我们第一次看到他的导入是用了\Smarty\templates\modules\Import\ImportBasic.tpl&&然后再引入不同的tpl文件经过测试实际是用的第3步,而不是第2步,请看下篇文章,中文导入显示空白页的原因:
导出的说法经测试是认同的
导出数据文件CSV中文乱码修正方法
修改include/utils/export.php中的第208和232行
echo iconv(&UTF-8&, &GBK&, $header); //原来: echo $
echo iconv(&UTF-8&, &gbk&, $line); //原来: echo $ }
导出原理解释:为了在Windows中不产生乱码必须将CSV文件的编码变成GBK,所以通过iconv转换为gbk格式
经测试发现导出的csv不是utf-8格式,所有导致导入的时候中文不显示或乱码问题,我时用notepad++转换后然后在上传的
可以参考:
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:303009次
积分:3721
积分:3721
排名:第7016名
原创:69篇
转载:123篇
评论:14条
(2)(13)(2)(11)(9)(4)(1)(3)(3)(8)(4)(20)(16)(22)(8)(3)(11)(21)(1)(4)(2)(3)(1)(2)(1)(1)(6)(1)(4)(3)(2)1069人阅读
VtigerCRM 点击拨号和来电弹屏 PBX Manager Module
1.点击拨号;
Make calls by clicking on phone numbers (links) within vtiger.
2.来电弹屏
Provides notification within vtiger giving details of the caller when a call comes to the user. (Notification appears on the bottom right-corner of the screen.)
3.PBX模块管理
View all past calls under PBX Manager module.
4.电话历史记录
Associates the call with the Contact/Organization/Lead record in Activity History section (In the More Information tab).
5.用户分机设置
Setup user extensions through My Preferences (Per user basis).
1,vtigercrm
vtigerCRM should be installed on your system
2,Asterisk
You should have a Asterisk system running
3,vtiger和Asterisk
The servers running vtiger and Asterisk should be visible to each other
4,分机和软电话
You have a valid asterisk user extension and a softphone configured to that extension.
Asterisk 配置:
修改Asterisk的manager.conf配置,增加一个管理员账号
deny=0.0.0.0/0.0.0.0
permit=/255.255.255.0
read=system,call,log,verbose,command,agent,user write=system,call,log,verbose,command,agent,user
is the user extension (say 201)
is the password for that extension (say abcdef)
is the IP that you want to be able to access asterisk (for e.g. 192.168.0.57/255.255.255.0)
If you have multiple IP's, put them on separate lines like:
permit=192.168.0.57/255.255.255.0
permit=192.168.0.58/255.255.255.0
vtiger CRM 配置:
打开模块设置菜单-&PBX Manager module
Asterisk server IP&&& Asterisk服务器IP
Asterisk server port& Asterisk服务器端口号.默认是5038&
Asterisk username&&&& Asterisk 管理员帐号
Asterisk password&&&& Asterisk 管理员密码
Asterisk Version&&&&& Asterisk 管理员版本
用户分机设置:Setting User Extensions
进入Vtigercrm的用户管理模块,设置“Asterisk Extension”,&Receive Incoming Calls&这两个选项
Setting User Extensionsvtiger CRM allows you to create extensions for each user.
These are the asterisk extensions that when configured in vtiger let you call or receive call for that user.
Once the asterisk configurations are up and ready to go, all users will need to set up their respective Asterisk extensions in the User Preferences.
Steps to Set User Extensions in vtiger CRM.
Login as any user and click on the My Preferences link on the top right of the page. On this page you will find a block labeled Asterisk Configuration. You will find two fields here
Asterisk Extension
The Asterisk Extension is the extension of the user
Receive Incoming Calls
Receive Incoming Calls field is where you specify if you want to enable incoming calls or not.
Fill up the asterisk extension for your user here and click Save to update changes.
启动来电弹屏程序:
进入vtigercrm目录Cron/Modules/PBXManager ,运行 AsteriskClient.php
Connecting to asterisk server.....
Connected successfully
Trying to login to asterisk
Logged in successfully to asterisk server
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:8363次
排名:千里之外
(2)(1)(1)(1)(6)(4)2282人阅读
导入数据文件CSV中文乱码修正:
在Smarty/templates/ImportStep1.tpl中的第99行插入&option value=”GBK”&GBK&/option&
&select name=&format& class=&small&&
&!-- value must be a known format for mb_convert_encoding() --&
&option value=&GBK&&GBK&/option& // &&插入一行
&option value=&ISO-8859-1&&ISO-8859-1&/option&
&option value=&UTF-8&&UTF-8&/option&
再修改modules/Import/resources/Utils.php中的第21行
static $supportedFileEncoding = array('UTF-8'=&'UTF-8','ISO-8859-1'=&'ISO-8859-1'); 修改为:static $supportedFileEncoding = array('UTF-8'=&'UTF-8','GBK'=&'GBK','ISO-8859-1'=&'ISO-8859-1'); 添加了GBK的数组,smarty再引用这个的数组的值。
原理说明:
导入时的程序执行的是先用了\Smarty\templates\modules\Import\ImportBasic.tpl 然后再引入不同的tpl文件
&tr& &td class=&leftFormBorder1& width=&60%& valign=&top&&
{include file='modules/Import/Import_Step1.tpl'} //第1步 &/td&
&td class=&leftFormBorder1& width=&40%& valign=&top&& {include file='modules/Import/Import_Step2.tpl'} //第2步 &/td& &/tr&
&tr& &td class=&leftFormBorder1& colspan=&2& valign=&top&& {include file='modules/Import/Import_Step3.tpl'} //第3步 &/td& &/tr&
&tr& &td align=&right& colspan=&2&& {include file='modules/Import/Import_Basic_Buttons.tpl'} &/td& &/tr&
再调用了modules/Import/Import_Step2.tpl
第34行代码如下:&select name=&file_encoding& id=&file_encoding& class=&small&& {foreach key=_FILE_ENCODING item=_FILE_ENCODING_LABEL from=$SUPPORTED_FILE_ENCODING} &option value=&{$_FILE_ENCODING}&&{$_FILE_ENCODING_LABEL|@getTranslatedString:$MODULE}&/option& &!--这里是数据类型--& {/foreach}&/select&&如果需要将一个Excel表格导入,要注意以下几个步骤:另存为CSV文件后,必须的格式要如下(表列值必须是双引号),然后中间有逗号分隔。
&姓名&,&性别&,&电话&,&手机&
&张三&,&男&,&&,&&
&李四&,&女&,&&,&&&注意:如果用导出的客户资料csv文件为模版,用Excel来编辑客户资料用来导入,则必须要经过处理,因为用Excel保存完csv文件之后,用UE打开后每列值是没有双引号的,如下:姓名,性别,电话,手机
李四,女,&处理方法:1、用UE打开,替换,为&,&2、上传到linux系统,用vim编辑,在行首和行尾分别加入&:%s/^/“/g
(在每行行首添加&):%s/$/&/g
(在每行行尾添加&)&然后就可以成功将中文导入了。&&
导出数据文件CSV中文乱码修正:
修改include/utils/export.php中的第208,232和240行
echo iconv(&UTF-8&, &GBK&, $header); //原来: echo $
echo iconv(&UTF-8&, &gbk&, $line); //原来: echo $ } $log-&debug(&Exiting export method ...&); }
header(&Content-Disposition:filename={$_REQUEST['module']}.csv&); header(&Content-Type:text/charset=gbk&); //原来: header(&Content-Type:text/charset=UTF-8&); header(&Expires: Mon, 26 Jul :00 GMT& ); header(&Last-Modified: & . gmdate(&D, d M Y H:i:s&) . & GMT& ); header(&Cache-Control: post-check=0, pre-check=0&, false );
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:139112次
积分:2221
积分:2221
排名:第13980名
原创:66篇
转载:119篇
评论:11条
(3)(7)(20)(8)(7)(32)(7)(1)(16)(21)(4)(3)(1)(3)(8)(4)(1)(3)(4)(4)(1)(9)(2)(4)(2)(2)(7)(1)易客CRM,中小企业最忠实的合作伙伴!
昨天发现,又有人更改vTigerCRM试用系统中admin的密码,这样可能给很多人带来了不少麻烦,真是抱歉!
更改密码的朋友,请自重!这已经是第二次发生这种事了,事不过三,如在次发现,封锁IP没商量!
现在已恢复! vtigercrm4.2中文版试用: admin/admin
转载请注明: &
or分享 (0)
没有相关文章!Vtiger CRM 6.0 《潜在客户》导出乱码修正_奔迪克斯空压机吧_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0可签7级以上的吧50个
本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:4贴子:
Vtiger CRM 6.0 《潜在客户》导出乱码修正
Vtiger Crm 6.0中文下 《潜在客户》导出乱码修改文件vtigerCRM\modules\Vtiger\actions\ExportData.php162行
贴吧热议榜
使用签名档&&
保存至快速回贴}

我要回帖

更多关于 vtiger crm 中文 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信