LogicalDOC含有中文字符的各種報錯
阿新 • • 發佈:2018-05-23
LogicalDOCLogicalDOC在上傳中文名文件,新建中文文件夾,新建用戶包含有中文,導入文件夾路徑含有中文……出現各種報錯。
需要修改對應的MySQL的數據庫字符設置,添加如下即可解決:
#mysql -u root -plogicaldoc logicaldoc >ALTER TABLE ld_document MODIFY ld_filename varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_version MODIFY ld_filename varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_folder MODIFY ld_name varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_note MODIFY ld_message varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_note MODIFY ld_snippet varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_history MODIFY ld_comment varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_history MODIFY ld_path varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_history MODIFY ld_pathold varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_history MODIFY ld_filename varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_history MODIFY ld_filenameold varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_folder_history MODIFY ld_comment varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_folder_history MODIFY ld_path varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_folder_history MODIFY ld_pathold varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_folder_history MODIFY ld_filename varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_folder_history MODIFY ld_filenameold varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_user_history MODIFY ld_comment varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_user_history MODIFY ld_filename varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_workflowhistory MODIFY ld_comment varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_workflowhistory MODIFY ld_filename varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_workflowhistory MODIFY ld_taskname varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_document MODIFY ld_filename varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_version MODIFY ld_filename varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_folder MODIFY ld_name varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_note MODIFY ld_message varchar(4000) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_note MODIFY ld_snippet varchar(4000) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_history MODIFY ld_comment varchar(4000) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_history MODIFY ld_path varchar(4000) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_history MODIFY ld_pathold varchar(4000) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_history MODIFY ld_filename varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_history MODIFY ld_filenameold varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_folder_history MODIFY ld_comment varchar(4000) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_folder_history MODIFY ld_path varchar(4000) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_folder_history MODIFY ld_pathold varchar(4000) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_folder_history MODIFY ld_filename varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_folder_history MODIFY ld_filenameold varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_user_history MODIFY ld_comment varchar(4000) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_user_history MODIFY ld_filename varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_workflowhistory MODIFY ld_comment varchar(4000) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_workflowhistory MODIFY ld_filename varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_workflowhistory MODIFY ld_taskname varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_user MODIFY ld_username varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_user MODIFY ld_password varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_user MODIFY ld_name varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_user MODIFY ld_firstname varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_user MODIFY ld_street varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_user MODIFY ld_email varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_user MODIFY ld_emailsignature varchar(1000) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_user MODIFY ld_email2 varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_user MODIFY ld_emailsignature2 varchar(1000) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_version MODIFY ld_foldername varchar(1000) CHARACTER SET utf8 COLLATE utf8_unicode_ci; >ALTER TABLE ld_importfolder MODIFY ld_path varchar(4000) CHARACTER SET utf8 COLLATE utf8_bin;
LogicalDOC含有中文字符的各種報錯