# 카테고리 페이지에서 이상한 인코딩 문제 발생

**URL:** <https://meta.discourse.org/t/weird-encoding-issue-on-categories-page/345490>\
**Category:** Product Support\
**Tags:** unsupported-install\
**Created:** [1월 3, 2025, 8:10오후 UTC](https://meta.discourse.org/t/weird-encoding-issue-on-categories-page/345490 "2025-01-03T20:10:08Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![darix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darix/32/114280_2.png) [@darix](https://meta.discourse.org/u/darix)\
**Post date:** [1월 26, 2025, 8:38오후 UTC](https://meta.discourse.org/t/weird-encoding-issue-on-categories-page/345490/11 "2025-01-26T20:38:58Z")

</div>

그래서 패키지를 내려서 다시 nokogiri 1.16을 사용하도록 했습니다. 이해가 안 되는 점은, 중복 패키징을 줄이기 위해 gem을 업데이트할 때마다 `main`에 관련 변경 사항이 있는지 확인하는데, 변경 사항이 없었습니다. 제가 무언가를 놓친 것이 아니라면요.

```plaintext
        "description": "Witaj w polskiej sekcji społeczności openSUSE!",
        "description_text": "Witaj w polskiej sekcji społeczności openSUSE!",
        "description_excerpt": "Witaj w polskiej sekcji spoÅecznoÅci openSUSE!",

```

보시는 것처럼 올바른 텍스트가 두 번 있고, `PrettyText.excerpt`를 거칠 때만 깨집니다. `main`에서는 이것이 어떻게 처리되나요?

@hendersj DB의 사본으로 테스트할 수 있도록 `main` 패키지를 준비하고 있습니다.

[DEV: Update nokogiri to 1.18.1 (#30554) · discourse/discourse@affe26f · GitHub](https://github.com/discourse/discourse/commit/affe26f0dd8ecb9f9adc4024c7d68524a7e6665c) 에서 처리된 것으로 보입니다.

하지만 궁금한 점이 있습니다. `lib/retrieve_title.rb`에서

```plaintext
doc = Nokogiri.HTML5(html, encoding:)

```

이 부분은 다음과 같이 되어야 하지 않나요?

```plaintext
doc = Nokogiri.HTML5(html, encoding: Encoding::UTF_8)

```

---

_[View the full topic](https://meta.discourse.org/t/weird-encoding-issue-on-categories-page/345490)._
