ubuntu / app-center

App Store for Ubuntu made with Flutter 🧡 💙
GNU General Public License v3.0
667 stars 117 forks source link

Chinese characters displays as invalid boxes. #1846

Closed Tianming-Wu closed 1 month ago

Tianming-Wu commented 1 month ago

Just look at the following picture:

图片

It doesn't seems right at all. The boxes is usually caused by wrong encoding or fonts that don't support Chinese.

System Details:

System Locale and Language (gnome too) are set to zh_CN.UTF-8, and Chinese. I think originally installed 22.04 version, and followed the regular updates all the way to 24.04 (the current version).

Version: I don't know the app-center version, it somehow displyed as 1.0.0 in the "About (Maybe)". There's no new updates, so I think it's the latest version.

Time: I've been seeing the issue since I installed the system. I have used the x86_64 ubuntu on my pc and app-center was all English.

Additional inforamtion that might help: Also, some other apps also have the problem, like localsend (installed via snap). I also contacted the author, but there wasn't any problem on his side.

I encountered the problem when using wine, but later solved by setting the environment variable LC_ALL=zh_cn.UTF-8 and LANG=zh_cn.UTF-8, and installed a font through winetricks.

It just worked all right on other pcs, so is it a problem with raspi builds, aarch64 architecture, or just my ubuntu install?

Tianming-Wu commented 1 month ago

Well if necessary:

tianming@tianming-desktop:~$ snap info snap-store
name:    snap-store
summary: Snap Store is a graphical desktop application for discovering, installing and
  managing snaps on Linux.
publisher: Canonical✓
store-url: https://snapcraft.io/snap-store
contact:   https://bugs.launchpad.net/snap-store/
license:   unset
description: |
  Snap Store showcases featured and popular applications with useful descriptions, ratings,
  reviews and screenshots.

  Applications can be found either through browsing categories or by searching.

  Snap Store can also be used to switch channels, view and alter snap permissions and view
  and submit reviews and ratings.

  Snap Store is based on GNOME Software, optimized for the Snap experience.
commands:
  - snap-store.show-updates
  - snap-store
snap-id:      gjf3IPXoRiipCu9K0kVu52f0H56fIksg
tracking:     2/stable/ubuntu-24.04
refresh-date: 5 天前,于 10:47(美国山区标准时间)
channels:
  2/stable:          0+git.4fcd62b7   2024-09-19 (1219) 10MB -
  2/candidate:       ↑                                       
  2/beta:            ↑                                       
  2/edge:            0+git.6c801617   2024-10-07 (1231) 10MB -
  latest/stable:     41.3-72-g80e7130 2024-09-22 (1217) 12MB -
  latest/candidate:  ↑                                       
  latest/beta:       ↑                                       
  latest/edge:       0+git.6c801617   2024-10-07 (1231) 10MB -
  preview/stable:    –                                       
  preview/candidate: 0.2.7-alpha      2023-01-24  (848)  9MB -
  preview/beta:      ↑                                       
  preview/edge:      0.3.0-alpha      2023-08-14 (1018) 10MB -
  1/stable:          41.3-72-g80e7130 2024-09-22 (1217) 12MB -
  1/candidate:       ↑                                       
  1/beta:            ↑                                       
  1/edge:            41.3-72-g80e7130 2024-09-16 (1217) 12MB -
installed:           0+git.4fcd62b7              (1219) 10MB -
d-loose commented 1 month ago

Duplicate of #1658