# 导入 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:** 13

<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 月 2 日 13:15 UTC](https://meta.discourse.org/t/import-mbox-maps-charset-windows-1252-to/168908/13 "2020-11-02T13:15:32Z")

</div>

> <https://github.com/discourse/discourse/blob/main/script/import_scripts/mbox/support/indexer.rb#L163-L165>

将：

```plaintext

    line = line.scrub

    if line =~ @split_regex

```

替换为：

```plaintext
    if line.scrub =~ @split_regex

```

似乎可以解决问题：

 ![good](https://global.discourse-cdn.com/meta/original/3X/0/6/06a74e01d6964e7ea1d676d9d8e1b5c96b93a59d.png)

但我不确定这是否是正确的修复方式。

---

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