html - 导入文件中的法语字符在 IE 中未正确显示
问题描述
我正在通过网页的输入文件元素导入包含法语字符的 csv 文件:
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" >
<input type='file' id='selectedFile' name='selectedFile' accept='text/csv'/>
该文件以 UTF-8 CSV 格式从 excel 中导出。
内容被发送到服务器并由 java 方法解析。法语字符在 IE 中显示不正确。字符在任何其他浏览器中正确显示。
示例:Aéroport CDG 显示为 Aéroport CDG
解决方案
推荐阅读
- bootstrap-4 - 带有 Bootstrap 主题的 Select2 不支持输入组类
- swift - 斯威夫特:编写输出流
- python - 如何为子图添加颜色条
- java - JsonObject 默认为 json 字符串添加反斜杠
- android - UnsatisfiedLinkError,使用 io.requery:sqlite-android:3.28.0 时找不到“libsqlite3x.so”
- passwords - 使用 Terraform 从 Vault 中检索键和值
- python - 使用检查模块获取继承对象的名称
- visual-studio - 在 Visual Studio 2019 中安装“使用 .NET 进行移动开发”
- azure-devops - Azure 工件是否存储通用包的增量?
- c++ - 不同长度的 std::string 的 std::move 性能问题