legacy-knowledge-base
公開されました Sep. 10, 2025

UTF-8 でエンコードされた OSGI 構成ファイルの Unicode 特殊文字が正しく読み取られない

written-by

Sorin Pop

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

1. osgi/config ディレクトリに添付された osgi 設定ファイルを追加します

2. ライフレイサーバーを起動する

3. システム設定に移動し、コメント セクションに移動します

期待される結果:
ディスカッションEmailBody プロパティには、本文テキスト内に "Mit freundlichen Grüßen" テキストがあります

実際の結果:
ディスカッションEmailBody プロパティには、"Mit freundlichen Grüßen" が含まれています

Environment

  • DXP 7.2

解決策

  • felix.fileinstall.configEncoding システム プロパティを適宜設定する必要があります。
  • portal-ext ファイルに行 module.framework.properties.felix.fileinstall.configEncoding=UTF-8 を追加するか、または
  • 起動時にシステム プロパティを取得できるバンドル内の system-ext.properties に行 felix.fileinstall.configEncoding=UTF-8 を追加します。
    たとえば、Tomcat では tomcat-root/webapps/ROOT/WEB-INF/classes/

did-this-article-resolve-your-issue

legacy-knowledge-base