Excel文件包含韩文文本。 我找不到解决方案.. 帮助我!
这是烧瓶代码
$active_group = 'default';
$query_builder = TRUE;
$db['default'] = array(
'dsn' => 'mysql:host=localhost;dbname=school;charset=utf8',
'hostname' => 'localhost',
'username' => 'root',
'password' => '',
'database' => 'school',
'dbdriver' => 'pdo',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => TRUE,
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'failover' => array(),
'save_queries' => TRUE
);
发生错误..
@app.route('/usecase/excel', methods=['GET', 'POST'])
def get_excel():
file_name = "usecase.xls"
return send_from_directory(app.static_folder, file_name)
答案 0 :(得分:0)