# Accent characters missing in search excerpts

**URL:** https://meta.discourse.org/t/accent-characters-missing-in-search-excerpts/242388
**Category:** Support
**Created:** [October 19, 2022, 3:53pm UTC](https://meta.discourse.org/t/accent-characters-missing-in-search-excerpts/242388 "2022-10-19T15:53:40Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [October 19, 2022, 3:53pm UTC](https://meta.discourse.org/t/accent-characters-missing-in-search-excerpts/242388/1 "2022-10-19T15:53:40Z")

</div>

Quick question.

I noticed some weird thing.

When I use the search a the forum I imported from phpBB 3.2 in 2018, the results excerpts don’t have accented characters, whereas the full message contains accents.  
It doesn’t happen in recent messages, so I believe this weird little bug was created during the importation.

Excerpt:

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/6/4/664ea581185d90c80c911be10134f72243e65dc0.png)

Full message:

 ![image](https://global.discourse-cdn.com/meta/original/4X/a/1/7/a17269f743d0262aa4355c61f2a219a90146b766.png)

I wonder if it _really_ comes from the import script and if the bug still exists. Any idea?

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [October 19, 2022, 3:55pm UTC](https://meta.discourse.org/t/accent-characters-missing-in-search-excerpts/242388/2 "2022-10-19T15:55:42Z")

</div>

Does rebaking the post fix the problem? There might have been a bug in 2018.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [October 19, 2022, 3:58pm UTC](https://meta.discourse.org/t/accent-characters-missing-in-search-excerpts/242388/4 "2022-10-19T15:58:46Z")

</div>

I rebuilt the HTML through Discourse interface and it didn’t resolve the issue. It’s not a serious one though, a lot of French people even don’t care about accents, I wouldn’t mind if it couldn’t be resolved.  
I’m just curious about where the problem comes from.

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [October 19, 2022, 4:31pm UTC](https://meta.discourse.org/t/accent-characters-missing-in-search-excerpts/242388/5 "2022-10-19T16:31:50Z")

</div>

I just tried this on another French forum - which was not imported - and topics from around that time do indeed not contain accented characters in their search excerpts.

Weird is that when I look at German forums, old topics _do_ contain accented characters in their search excerpts 🤔

Look at the last line of this log

```plaintext
commit cee51672c96d29174196717b734c7f7ba0754172
Author: Daniel Hollas <danekhollas@gmail.com>
Date: Tue Oct 23 03:10:33 2018 +0200

    FIX: Strip accents from search query

    4481836 introduced accent stipping in search_indexer,
    but we need to strip it from the query itself as well

    TODO in search with diacritics:
     - Still need to fix excerpts on search page

```

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [October 19, 2022, 5:27pm UTC](https://meta.discourse.org/t/accent-characters-missing-in-search-excerpts/242388/6 "2022-10-19T17:27:47Z")

</div>

Okay, so if the problem is no more, then this case can be closed (correct me if I’m wrong). Old excerpts with missing accents aren’t a big deal. 🙂

Thanks for the explanation @RGJ!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [November 18, 2022, 5:28pm UTC](https://meta.discourse.org/t/accent-characters-missing-in-search-excerpts/242388/7 "2022-11-18T17:28:33Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
