OnionUI / Onion

OS overhaul for Miyoo Mini and Mini+
https://onionui.github.io
GNU General Public License v3.0
3.29k stars 206 forks source link

FFPlay Unicode characters not displayed properly in file selector #1401

Open goooooouwa opened 7 months ago

goooooouwa commented 7 months ago

Checklist

Onions OS Version

4.2.3

Miyoo Firmware Version

202306282128

Provide a clear and concise description of the issue

FFPlay: Unicode characters not displayed properly in file selector

20240131_062829530_iOS

Steps to Reproduce

Please provide detailed steps that will help us replicate and investigate your issue:

Steps to Reproduce:

  1. Upload a video with filename containing Unicode characters, e.g. Chinese, Japanese
  2. Open FFPlay to select the file

Expected:

Actual:

Provide any additional context or information that may help us investigate your issue

I believe the file selector is provided by the SDL terminal, relavant code snippet found in static\packages\App\Video Player (FFplay)\App\FFplay\launch.sh:

./bin/st -q -e "$sysdir/script/file_selector.sh" "Video Player" "$mediadir" "3g2 3gp asf avi flv h264 m2t m2ts m4v mkv mod mov mp4 mpg tod vob webm wmv"

XK9274 commented 4 months ago

Pretty sure this is a problem with the terminal app's (st) bitmap font and not something we can easily fix as I believe eggs was involved. It's not a standard font file and therefore probably doesn't contain the characters you're expecting in the format you're expecting.

You can see the same issue here where the progress bar should be.. well a bar - not p's

image

Esn024 commented 2 weeks ago

I also have this bug (miyoo firmware 202310271401, Onion OS v4.3.1-1). In the File Explorer, though, there is no such issue and unicode filenames display just fine. Unfortunately, it's not possible to launch videos from the File Explorer.

fengfrw commented 2 weeks ago

It is recommended that FFpay\PDF\PixelReader be moved to Emu to support Unicode character display and convenient and fast list selection.