# 导入 mbox 映射 charset=windows-1252 到 �

**URL:** <https://meta.discourse.org/t/import-mbox-maps-charset-windows-1252-to/168908>\
**Category:** Product Support\
**Created:** [2020 年11 月 1 日 10:12 UTC](https://meta.discourse.org/t/import-mbox-maps-charset-windows-1252-to/168908 "2020-11-01T10:12:07Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![dachary](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dachary/32/119731_2.png) [@dachary](https://meta.discourse.org/u/dachary)\
发布日期： [2020 年11 月 1 日 10:12 UTC](https://meta.discourse.org/t/import-mbox-maps-charset-windows-1252-to/168908/1 "2020-11-01T10:12:07Z")

</div>

你好，

在导入包含此消息的 [mbox 文件](https://meta.discourse.org/t/importing-mailing-lists-mbox-listserv-google-groups-emails/79773) 时：

[windows.txt|附件](https://meta.discourse.org/uploads/short-url/6ae5Bvsh1jSybVunvlYB3omfT29.txt) (3.7 KB)

显示如下：

 ![fail](https://global.discourse-cdn.com/meta/original/3X/5/e/5ef8e1322600728deb4e6d6e00a69470f6b3144b.png)

这很可能是一个编码问题，因为它包含：

```plaintext
Content-Type: text/plain; charset=windows-1252; format=flowed

```

其他使用非 UTF-8 字符集（例如 **iso-8859-1** ）的消息都能正确导入。

在我尝试通过查看源代码（从 [script/import\_scripts/mbox/support/indexer.rb](https://github.com/discourse/discourse/blob/master/script/import_scripts/mbox/support/indexer.rb#L198) 开始）来找出问题根源之前，有人有什么想法吗？这是否可能是环境问题而非代码库的问题？当以邮件列表模式运行的用户以这种编码发送回复时，是否也会出现同样的问题？

提前感谢 🙂

---

_[View the full topic](https://meta.discourse.org/t/import-mbox-maps-charset-windows-1252-to/168908)._
