Difference between revisions of "Displaying Unicode Characters in MythVideo"

From MythTV Official Wiki
Jump to: navigation, search
m (Displaying Unicode Characters moved to Displaying Unicode Characters in MythVideo)
(Categorized)
Line 3: Line 3:
 
My wife has some chinese movies that she likes to watch on [[Myth Video]]; but the filenames have chinese characters on them, thus show up as garbage on Mythvideo's browser. After lots of digging, this is what I did to fix it:
 
My wife has some chinese movies that she likes to watch on [[Myth Video]]; but the filenames have chinese characters on them, thus show up as garbage on Mythvideo's browser. After lots of digging, this is what I did to fix it:
  
1. Get your locale right. There are various ways in different distributions to do this, but in Debian and bash, I did: <code><nowiki>export LC_CTYPE=en_US.UTF-8</nowiki></code>
+
* Get your locale right. There are various ways in different distributions to do this, but in Debian and bash, I did: <code><nowiki>export LC_CTYPE=en_US.UTF-8</nowiki></code>
2. Get a font that supports unicode. I copied over Arial Unicode MS from my laptop running Windows XP. Testing it in Konqueror, konqueror now renders the filenames correctly.
+
* Get a font that supports unicode. I copied over Arial Unicode MS from my laptop running Windows XP. Testing it in Konqueror, konqueror now renders the filenames correctly.
3. Remove all old metadata in videometadata table. On 0.18, [[Myth Video]] is unable to remove metadata entries that have unicode characters. You have to manually remove them.
+
* Remove all old metadata in videometadata table. On 0.18, [[Myth Video]] is unable to remove metadata entries that have unicode characters. You have to manually remove them.
4. For the theme that you're running, figure out the font that is being used for the list. The theme file should be in `/usr/share/mythtv/themes/<theme>/theme.xml` or `/usr/local/share/mythtv/themes/<theme>/theme.xml`. I looked at Titivilus (my current theme), and changed the font there from whatever it was to Arial Unicode MS.
+
* For the theme that you're running, figure out the font that is being used for the list. The theme file should be in `/usr/share/mythtv/themes/<theme>/theme.xml` or `/usr/local/share/mythtv/themes/<theme>/theme.xml`. I looked at Titivilus (my current theme), and changed the font there from whatever it was to Arial Unicode MS.
5. Rerun video manager to repopulate the videometadata database.
+
* Rerun video manager to repopulate the videometadata database.
  
 
+
[[Category:HOWTO]]
[[Category How To]]
 

Revision as of 03:00, 2 December 2005

This is a short How To to display Unicode Chars in Myth Video.

My wife has some chinese movies that she likes to watch on Myth Video; but the filenames have chinese characters on them, thus show up as garbage on Mythvideo's browser. After lots of digging, this is what I did to fix it:

  • Get your locale right. There are various ways in different distributions to do this, but in Debian and bash, I did: export LC_CTYPE=en_US.UTF-8
  • Get a font that supports unicode. I copied over Arial Unicode MS from my laptop running Windows XP. Testing it in Konqueror, konqueror now renders the filenames correctly.
  • Remove all old metadata in videometadata table. On 0.18, Myth Video is unable to remove metadata entries that have unicode characters. You have to manually remove them.
  • For the theme that you're running, figure out the font that is being used for the list. The theme file should be in `/usr/share/mythtv/themes/<theme>/theme.xml` or `/usr/local/share/mythtv/themes/<theme>/theme.xml`. I looked at Titivilus (my current theme), and changed the font there from whatever it was to Arial Unicode MS.
  • Rerun video manager to repopulate the videometadata database.