Azzera filtri
Azzera filtri

データベース ツール​ボックスアプリの文字​化けの解消法について

5 visualizzazioni (ultimi 30 giorni)
hatosan
hatosan il 2 Feb 2021
Commentato: hatosan il 3 Feb 2021
DataBase Toolboxを用いてPostgresで作成したデータベースに接続しています。
その際に、日本語で表示されるはずの箇所が文字化けしています。
どのようにしたら解消することが可能でしょうか。
MATLABのVer:2020b
よろしくお願いいたします。
  2 Commenti
Kojiro Saito
Kojiro Saito il 3 Feb 2021
どこが文字化けしているのか把握するために、スクリーンショットを添付してもらえますでしょうか?
hatosan
hatosan il 3 Feb 2021
下部のnameやshort_nameなどの箇所です。

Accedi per commentare.

Risposta accettata

Kojiro Saito
Kojiro Saito il 3 Feb 2021
PostgreSQLのドライバー(NativeまたはJDBCなど)の接続オプションに、「client_encoding」、「SJIS」を付けてDBに接続し直してみたら解消すると思います。
エンコードの値はPostgreSQLのドキュメントにあります。
日本語だと、SJIS、EUC_JPあたりのエンコードが良いかと思います。
  1 Commento
hatosan
hatosan il 3 Feb 2021
無事、文字化け解決できました。
ありがとうございました。

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su App Designer を使用したアプリ開発 in Help Center e File Exchange

Prodotti


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!