Opened 11 years ago

Closed 11 years ago

#8339 closed defect (fixed)

Non ascii video titles in mythweb are truncated

Reported by: yianniv Owned by: Rob Smith
Priority: minor Milestone: 0.24
Component: Plugin - MythWeb Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no


Ever since - I think - I moved to storage groups, in the mythvideo screen of mythweb the non-ascii titled videos appear on the left hand side as if they were folders (links). Moreover, some of them are only the left "half" phrases or words, and the right part is gone. Strangely, a <nonasciifile>.avi appears as "<nonasciifile>.a" i.e. the ascii letters "vi" are missing.

No standard phrase length, truncation seems random.

If a folder contains non-ascii videos, they will appear tabbed under the parent folder as sub-folders and the ascii titled videos will appear normally with their icons and titles on the main window.

Is this a misconfiguration on my part (in which case I apologize) or a bug?

There is nothing mentioned in apache.log or mythbackend.log (with -v important)

I hope the description is not too confusing.

The system is Debian Lenny (apache 2.2.9-10+Lenny4)

MythTV Version   : 24088M
MythTV Branch    : trunk
Network Protocol : 56
Library API      : 0.23.20100404-1
QT Version       : 4.5.3
Options compiled in:
 linux release using_oss using_alsa using_jack using_backend using_dvb using_firewire using_frontend using_hdpvr using_iptv using_ivtv using_libfftw3 using_lirc using_mheg using_opengl_video using_opengl_vsync using_qtdbus using_qtwebkit using_v4l using_x11 using_xrandr using_xv using_xvmc using_xvmc_vld using_xvmcw using_bindings_perl using_bindings_python using_opengl using_vdpau using_ffmpeg_threads using_libavc_5_3 using_live using_mheg

Attachments (1)

handler.diff (1.3 KB) - added by yianniv 11 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 11 years ago by Rob Smith

Status: newinfoneeded_new

Do they contain letters that map to an ascii /?

comment:2 Changed 11 years ago by yianniv

Sorry, I just noticed your post.

There is for example a folder called Family, and in it, one of the videos is:

Βάπτιση Βασιλικής

What I get on the left frame is:


Βάπτιση Βασιλικ

(there is no blank line between the two, this post creates it)

Many more are truncated, and not on the same letters or word length. Even English letters are cut: Δεσποινίς ετών ("v" is missing)

The only Greek files that appear normally as videos on the main frame are isos, which of course, don't play.

These videos are missing from the main frame, the program thinks they are folders.

comment:3 Changed 11 years ago by robertm

Status: infoneeded_newnew

comment:4 Changed 11 years ago by yianniv

Thanks to Meikel Iwer with his #8724 ticket, I followed his tip and changed the LENGTH(filename) to CHAR_LENGTH(filename) in handler.php.

It actually corrects the folder structure, although some folders with only non-ascii filenames appear empty. At least the folders are there, though.

I think more work has to be done, but I can't help any more... Thanks, Meikel.

I am attaching the patch.

Changed 11 years ago by yianniv

Attachment: handler.diff added

comment:5 Changed 11 years ago by robertm

Status: newassigned

comment:6 Changed 11 years ago by Rob Smith

Milestone: unknown0.24

comment:7 Changed 11 years ago by Rob Smith

Resolution: fixed
Status: assignedclosed

(In [26121]) Fixes #8339, this should fix utf-8 video titles

Note: See TracTickets for help on using tickets.