免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 7589 | 回复: 12
打印 上一主题 下一主题

[Mail] 如何解决SquirrelMail下载附件时,不能识别中文文件名 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-04-06 16:51 |只看该作者 |倒序浏览
如何解决SquirrelMail下载附件时,不能识别中文文件名?
这个问题已经烦了我N天了,请各位帮忙想想

论坛徽章:
0
2 [报告]
发表于 2005-04-06 22:07 |只看该作者

如何解决SquirrelMail下载附件时,不能识别中文文件名

没什么问题呀。

论坛徽章:
0
3 [报告]
发表于 2005-04-07 09:06 |只看该作者

如何解决SquirrelMail下载附件时,不能识别中文文件名

其它地方倒一切正常,就是下载附件时,如果是用中文命名的文件,则其文件名会变成乱码,无法识别,偶实在是不知从何下手,谢谢各位了

论坛徽章:
0
4 [报告]
发表于 2005-04-07 09:21 |只看该作者

如何解决SquirrelMail下载附件时,不能识别中文文件名

你的SquirrelMail语言设置是什么,改成简体中文试试。

论坛徽章:
0
5 [报告]
发表于 2005-04-07 09:32 |只看该作者

如何解决SquirrelMail下载附件时,不能识别中文文件名

语言,ENCODING设置都没错,以下是我的配置文件,各位请看看

<?php
/**
* SquirrelMail Configuration File
* Created using the Administrator Plugin
*/

global $version;
$config_version = '1.4.0';
$org_name = "xxxxxx";
$org_logo = SM_PATH . 'images/sm_logo.png';
$org_logo_width = "308";
$org_logo_height = "111";
$org_title = "xxxxx";
$signout_page = '';
$provider_uri = "http://www.xxx.com.cn/";
$provider_name = "xxxxx";
$frame_top = "_top";
$domain = "xxx.xxx.xxx.xxxx";
$imapServerAddress = "localhost";
$imapPort = 143;
$imap_server_type = "courier";
$optional_delimiter = ".";
$use_imap_tls = FALSE;
$imap_auth_mech = "login";
$useSendmail = FALSE;
$sendmail_path = "/usr/sbin/sendmail";
$smtpServerAddress = "localhost";
$smtpPort = 25;
$use_smtp_tls = FALSE;
$smtp_auth_mech = "none";
$pop_before_smtp = FALSE;
$invert_time = FALSE;
$default_folder_prefix = "INBOX.";
$show_prefix_option = FALSE;
$trash_folder = "拉圾箱";
$sent_folder = "发信箱";
$draft_folder = "草稿箱";
$default_move_to_trash = TRUE;
$default_move_to_sent = TRUE;
$default_save_as_draft = TRUE;
$list_special_folders_first = TRUE;
$use_special_folder_color = TRUE;
$auto_expunge = TRUE;
$default_sub_of_inbox = FALSE;
$show_contain_subfolders_option = FALSE;
$default_unseen_notify = 2;
$default_unseen_type = 1;
$auto_create_special = TRUE;
$delete_folder = TRUE;
$noselect_fix_enable = FALSE;
$data_dir = SM_PATH . 'data/';
$attachment_dir = '/tmp';
$dir_hash_level = 0;
$default_left_size = 100;
$force_username_lowercase = FALSE;
$default_use_priority = TRUE;
$hide_sm_attributions = TRUE;
$default_use_mdn = TRUE;
$edit_identity = TRUE;
$edit_name = TRUE;
$allow_server_sort = FALSE;
$allow_thread_sort = FALSE;
$allow_charset_search = TRUE;
$uid_support = TRUE;
$session_name = 'SQMSESSID';
$motd = "xxx";
$addrbook_dsn = "mysql://xxxxxx@localhost/vpopmail";
$addrbook_table = "address";
$prefs_dsn = "mysql://xxxxxxx@localhost/vpopmail";
$prefs_table = "userprefs";
$prefs_user_field = "user";
$prefs_key_field = "prefkey";
$prefs_val_field = "prefval";
$addrbook_global_dsn = "mysql://xxxxxxxx@localhost/vpopmail";
$addrbook_global_table = "global_abook";
$addrbook_global_writeable = FALSE;
$addrbook_global_listing = TRUE;
$squirrelmail_default_language = 'zh_CN';
$default_charset = 'gb2312';
$lossy_encoding = FALSE;
$default_use_javascript_addr_book = FALSE;
$abook_global_file = "";
$abook_global_file_writeable = FALSE;
$theme_css = '/themes/css/style.css';
$theme_default = 8;
$config_use_color = 2;
$no_list_for_subscribe = FALSE;
$theme[0]['PATH'] = SM_PATH . 'themes/default_theme.php';
$theme[0]['NAME'] = 'Default';
$theme[1]['PATH'] = SM_PATH . 'themes/plain_blue_theme.php';
$theme[1]['NAME'] = 'Plain Blue';
$theme[2]['PATH'] = SM_PATH . 'themes/sandstorm_theme.php';
$theme[2]['NAME'] = 'Sand Storm';
$theme[3]['PATH'] = SM_PATH . 'themes/deepocean_theme.php';
$theme[3]['NAME'] = 'Deep Ocean';
$theme[4]['PATH'] = SM_PATH . 'themes/slashdot_theme.php';
$theme[4]['NAME'] = 'Slashdot';
$theme[5]['PATH'] = SM_PATH . 'themes/purple_theme.php';
$theme[5]['NAME'] = 'Purple';
$theme[6]['PATH'] = SM_PATH . 'themes/forest_theme.php';
$theme[6]['NAME'] = 'Forest';
$theme[7]['PATH'] = SM_PATH . 'themes/ice_theme.php';
$theme[7]['NAME'] = 'Ice';
$theme[8]['PATH'] = SM_PATH . 'themes/seaspray_theme.php';
$theme[8]['NAME'] = 'Sea Spray';
$theme[9]['PATH'] = SM_PATH . 'themes/bluesteel_theme.php';
$theme[9]['NAME'] = 'Blue Steel';
$theme[10]['PATH'] = SM_PATH . 'themes/dark_grey_theme.php';
$theme[10]['NAME'] = 'Dark Grey';
$theme[11]['PATH'] = SM_PATH . 'themes/high_contrast_theme.php';
$theme[11]['NAME'] = 'High Contrast';
$theme[12]['PATH'] = SM_PATH . 'themes/black_bean_burrito_theme.php';
$theme[12]['NAME'] = 'Black Bean Burrito';
$theme[13]['PATH'] = SM_PATH . 'themes/servery_theme.php';
$theme[13]['NAME'] = 'Servery';
$theme[14]['PATH'] = SM_PATH . 'themes/maize_theme.php';
$theme[14]['NAME'] = 'Maize';
$theme[15]['PATH'] = SM_PATH . 'themes/bluesnews_theme.php';
$theme[15]['NAME'] = 'BluesNews';
$theme[16]['PATH'] = SM_PATH . 'themes/deepocean2_theme.php';
$theme[16]['NAME'] = 'Deep Ocean 2';
$theme[17]['PATH'] = SM_PATH . 'themes/blue_grey_theme.php';
$theme[17]['NAME'] = 'Blue Grey';
$theme[18]['PATH'] = SM_PATH . 'themes/dompie_theme.php';
$theme[18]['NAME'] = 'Dompie';
$theme[19]['PATH'] = SM_PATH . 'themes/methodical_theme.php';
$theme[19]['NAME'] = 'Methodical';
$theme[20]['PATH'] = SM_PATH . 'themes/greenhouse_effect.php';
$theme[20]['NAME'] = 'Greenhouse Effect (Changes)';
$theme[21]['PATH'] = SM_PATH . 'themes/in_the_pink.php';
$theme[21]['NAME'] = 'In The Pink (Changes)';
$theme[22]['PATH'] = SM_PATH . 'themes/kind_of_blue.php';
$theme[22]['NAME'] = 'Kind of Blue (Changes)';
$theme[23]['PATH'] = SM_PATH . 'themes/monostochastic.php';
$theme[23]['NAME'] = 'Monostochastic (Changes)';
$theme[24]['PATH'] = SM_PATH . 'themes/shades_of_grey.php';
$theme[24]['NAME'] = 'Shades of Grey (Changes)';
$theme[25]['PATH'] = SM_PATH . 'themes/spice_of_life.php';
$theme[25]['NAME'] = 'Spice of Life (Changes)';
$theme[26]['PATH'] = SM_PATH . 'themes/spice_of_life_lite.php';
$theme[26]['NAME'] = 'Spice of Life - Lite (Changes)';
$theme[27]['PATH'] = SM_PATH . 'themes/spice_of_life_dark.php';
$theme[27]['NAME'] = 'Spice of Life - Dark (Changes)';
$theme[28]['PATH'] = SM_PATH . 'themes/christmas.php';
$theme[28]['NAME'] = 'Holiday - Christmas';
$theme[29]['PATH'] = SM_PATH . 'themes/darkness.php';
$theme[29]['NAME'] = 'Darkness (Changes)';
$theme[30]['PATH'] = SM_PATH . 'themes/random.php';
$theme[30]['NAME'] = 'Random (Changes every login)';
$theme[31]['PATH'] = SM_PATH . 'themes/midnight.php';
$theme[31]['NAME'] = 'Midnight';
$theme[32]['PATH'] = SM_PATH . 'themes/alien_glow.php';
$theme[32]['NAME'] = 'Alien Glow';
$theme[33]['PATH'] = SM_PATH . 'themes/dark_green.php';
$theme[33]['NAME'] = 'Dark Green';
$theme[34]['PATH'] = SM_PATH . 'themes/penguin.php';
$theme[34]['NAME'] = 'Penguin';
$theme[35]['PATH'] = SM_PATH . 'themes/minimal_bw.php';
$theme[35]['NAME'] = 'Minimal BW';
$theme[36]['PATH'] = SM_PATH . 'themes/redmond.php';
$theme[36]['NAME'] = 'Redmond';
$theme[37]['PATH'] = SM_PATH . 'themes/netstyle_theme.php';
$theme[37]['NAME'] = 'Net Style';
$plugins[0] = 'abook_import_export';
$plugins[1] = 'abook_take';
$plugins[2] = 'admin_add';
$plugins[3] = 'administrator';
$plugins[4] = 'bug_report';
$plugins[5] = 'calendar';
$plugins[6] = 'change_pass';
$plugins[7] = 'check_quota';
$plugins[8] = 'compatibility';
$plugins[9] = 'delete_move_next';
$plugins[10] = 'filters';
$plugins[11] = 'fortune';
$plugins[12] = 'html_mail';
$plugins[13] = 'info';
$plugins[14] = 'listcommands';
$plugins[15] = 'mail_fetch';
$plugins[16] = 'message_details';
$plugins[17] = 'newmail';
$plugins[18] = 'sent_subfolders';
$plugins[19] = 'spamcop';
$plugins[20] = 'squirrelspell';
$plugins[21] = 'templates';
$plugins[22] = 'translate';
$plugins[23] = 'virus_scan';
?>;

论坛徽章:
0
6 [报告]
发表于 2005-04-07 09:34 |只看该作者

如何解决SquirrelMail下载附件时,不能识别中文文件名

再补充一点,其它地方都可以正常的显示及支持中文,就是下载附件时,如果附件名称含有中文,那么下载下来的文件名就会变为乱码

论坛徽章:
0
7 [报告]
发表于 2005-04-07 14:41 |只看该作者

如何解决SquirrelMail下载附件时,不能识别中文文件名

没人曾碰过类似的问题吗

论坛徽章:
0
8 [报告]
发表于 2005-04-07 15:58 |只看该作者

如何解决SquirrelMail下载附件时,不能识别中文文件名

好象是IMAP 中的一个文件有中文文件名字处理BUG

论坛徽章:
0
9 [报告]
发表于 2005-04-07 23:08 |只看该作者

如何解决SquirrelMail下载附件时,不能识别中文文件名

在浏览那个网页时,用右键看看你的浏览器使用的编码是什么?

是UTF-8还是简体中文。

然后再确定下一步应该怎么做吧。

如果是UTF-8,那么就使用PHP的iconv函数进行转码吧。
echo iconv("GB2312","UTF-8",$str);

论坛徽章:
0
10 [报告]
发表于 2005-04-08 10:23 |只看该作者

如何解决SquirrelMail下载附件时,不能识别中文文件名

我觉得是IMAP中的错误,也可能你们用高版本已经改好了。

请大家试验自己的有无问题。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP