hfkxz 发表于 2005-04-06 16:51

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

如何解决SquirrelMail下载附件时,不能识别中文文件名?
这个问题已经烦了我N天了,请各位帮忙想想

norman_lu 发表于 2005-04-06 22:07

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

没什么问题呀。

hfkxz 发表于 2005-04-07 09:06

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

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

norman_lu 发表于 2005-04-07 09:21

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

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

hfkxz 发表于 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://xxx:xxxx@localhost/vpopmail";
$addrbook_table = "address";
$prefs_dsn = "mysql://xxx:xxxxx@localhost/vpopmail";
$prefs_table = "userprefs";
$prefs_user_field = "user";
$prefs_key_field = "prefkey";
$prefs_val_field = "prefval";
$addrbook_global_dsn = "mysql://xxxx:xxxxx@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['PATH'] = SM_PATH . 'themes/default_theme.php';
$theme['NAME'] = 'Default';
$theme['PATH'] = SM_PATH . 'themes/plain_blue_theme.php';
$theme['NAME'] = 'Plain Blue';
$theme['PATH'] = SM_PATH . 'themes/sandstorm_theme.php';
$theme['NAME'] = 'Sand Storm';
$theme['PATH'] = SM_PATH . 'themes/deepocean_theme.php';
$theme['NAME'] = 'Deep Ocean';
$theme['PATH'] = SM_PATH . 'themes/slashdot_theme.php';
$theme['NAME'] = 'Slashdot';
$theme['PATH'] = SM_PATH . 'themes/purple_theme.php';
$theme['NAME'] = 'Purple';
$theme['PATH'] = SM_PATH . 'themes/forest_theme.php';
$theme['NAME'] = 'Forest';
$theme['PATH'] = SM_PATH . 'themes/ice_theme.php';
$theme['NAME'] = 'Ice';
$theme['PATH'] = SM_PATH . 'themes/seaspray_theme.php';
$theme['NAME'] = 'Sea Spray';
$theme['PATH'] = SM_PATH . 'themes/bluesteel_theme.php';
$theme['NAME'] = 'Blue Steel';
$theme['PATH'] = SM_PATH . 'themes/dark_grey_theme.php';
$theme['NAME'] = 'Dark Grey';
$theme['PATH'] = SM_PATH . 'themes/high_contrast_theme.php';
$theme['NAME'] = 'High Contrast';
$theme['PATH'] = SM_PATH . 'themes/black_bean_burrito_theme.php';
$theme['NAME'] = 'Black Bean Burrito';
$theme['PATH'] = SM_PATH . 'themes/servery_theme.php';
$theme['NAME'] = 'Servery';
$theme['PATH'] = SM_PATH . 'themes/maize_theme.php';
$theme['NAME'] = 'Maize';
$theme['PATH'] = SM_PATH . 'themes/bluesnews_theme.php';
$theme['NAME'] = 'BluesNews';
$theme['PATH'] = SM_PATH . 'themes/deepocean2_theme.php';
$theme['NAME'] = 'Deep Ocean 2';
$theme['PATH'] = SM_PATH . 'themes/blue_grey_theme.php';
$theme['NAME'] = 'Blue Grey';
$theme['PATH'] = SM_PATH . 'themes/dompie_theme.php';
$theme['NAME'] = 'Dompie';
$theme['PATH'] = SM_PATH . 'themes/methodical_theme.php';
$theme['NAME'] = 'Methodical';
$theme['PATH'] = SM_PATH . 'themes/greenhouse_effect.php';
$theme['NAME'] = 'Greenhouse Effect (Changes)';
$theme['PATH'] = SM_PATH . 'themes/in_the_pink.php';
$theme['NAME'] = 'In The Pink (Changes)';
$theme['PATH'] = SM_PATH . 'themes/kind_of_blue.php';
$theme['NAME'] = 'Kind of Blue (Changes)';
$theme['PATH'] = SM_PATH . 'themes/monostochastic.php';
$theme['NAME'] = 'Monostochastic (Changes)';
$theme['PATH'] = SM_PATH . 'themes/shades_of_grey.php';
$theme['NAME'] = 'Shades of Grey (Changes)';
$theme['PATH'] = SM_PATH . 'themes/spice_of_life.php';
$theme['NAME'] = 'Spice of Life (Changes)';
$theme['PATH'] = SM_PATH . 'themes/spice_of_life_lite.php';
$theme['NAME'] = 'Spice of Life - Lite (Changes)';
$theme['PATH'] = SM_PATH . 'themes/spice_of_life_dark.php';
$theme['NAME'] = 'Spice of Life - Dark (Changes)';
$theme['PATH'] = SM_PATH . 'themes/christmas.php';
$theme['NAME'] = 'Holiday - Christmas';
$theme['PATH'] = SM_PATH . 'themes/darkness.php';
$theme['NAME'] = 'Darkness (Changes)';
$theme['PATH'] = SM_PATH . 'themes/random.php';
$theme['NAME'] = 'Random (Changes every login)';
$theme['PATH'] = SM_PATH . 'themes/midnight.php';
$theme['NAME'] = 'Midnight';
$theme['PATH'] = SM_PATH . 'themes/alien_glow.php';
$theme['NAME'] = 'Alien Glow';
$theme['PATH'] = SM_PATH . 'themes/dark_green.php';
$theme['NAME'] = 'Dark Green';
$theme['PATH'] = SM_PATH . 'themes/penguin.php';
$theme['NAME'] = 'Penguin';
$theme['PATH'] = SM_PATH . 'themes/minimal_bw.php';
$theme['NAME'] = 'Minimal BW';
$theme['PATH'] = SM_PATH . 'themes/redmond.php';
$theme['NAME'] = 'Redmond';
$theme['PATH'] = SM_PATH . 'themes/netstyle_theme.php';
$theme['NAME'] = 'Net Style';
$plugins = 'abook_import_export';
$plugins = 'abook_take';
$plugins = 'admin_add';
$plugins = 'administrator';
$plugins = 'bug_report';
$plugins = 'calendar';
$plugins = 'change_pass';
$plugins = 'check_quota';
$plugins = 'compatibility';
$plugins = 'delete_move_next';
$plugins = 'filters';
$plugins = 'fortune';
$plugins = 'html_mail';
$plugins = 'info';
$plugins = 'listcommands';
$plugins = 'mail_fetch';
$plugins = 'message_details';
$plugins = 'newmail';
$plugins = 'sent_subfolders';
$plugins = 'spamcop';
$plugins = 'squirrelspell';
$plugins = 'templates';
$plugins = 'translate';
$plugins = 'virus_scan';
?>;

hfkxz 发表于 2005-04-07 09:34

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

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

hfkxz 发表于 2005-04-07 14:41

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

没人曾碰过类似的问题吗

思一克 发表于 2005-04-07 15:58

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

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

wxxszzz 发表于 2005-04-07 23:08

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

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

是UTF-8还是简体中文。

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

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

思一克 发表于 2005-04-08 10:23

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

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

请大家试验自己的有无问题。
页: [1] 2
查看完整版本: 如何解决SquirrelMail下载附件时,不能识别中文文件名