LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-11-2016, 05:45 AM   #1
LiFo14
LQ Newbie
 
Registered: Jan 2016
Location: Russia
Distribution: Fedora, Mac OS, Gentoo
Posts: 24

Rep: Reputation: Disabled
Linux file title encoding


Hi!

I am Russian guy, but language on all my machines is English. Love that language. So there is some problem with cyrillic titled files. Is there a way to fix it?
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2016-12-11 14-36-51.png
Views:	47
Size:	111.8 KB
ID:	23736  
 
Old 12-11-2016, 09:59 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
It may be that you do not have the necessary language packs installed to properly display Cryllic.

Open a terminal and enter this command:
Code:
yum list installed | grep UTF.
If youdon't see the Russian or Cryllic packages installed, you will need to installed them.

Another command to try:
Code:
yum grouplist | grep ru
If you find that the Russian language packs are not installed, you can install them with this command:
Code:
sudo dnf install langpacks-ru

Last edited by bigrigdriver; 12-11-2016 at 10:01 AM.
 
1 members found this post helpful.
Old 12-11-2016, 10:46 AM   #3
LiFo14
LQ Newbie
 
Registered: Jan 2016
Location: Russia
Distribution: Fedora, Mac OS, Gentoo
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bigrigdriver View Post
It may be that you do not have the necessary language packs installed to properly display Cryllic.

Open a terminal and enter this command:
Code:
yum list installed | grep UTF.
If youdon't see the Russian or Cryllic packages installed, you will need to installed them.

Another command to try:
Code:
yum grouplist | grep ru
If you find that the Russian language packs are not installed, you can install them with this command:
Code:
sudo dnf install langpacks-ru
Yes, some packages have been installed, but it took no affect even after reboot
 
Old 12-11-2016, 11:06 AM   #4
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,158

Rep: Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318
Open a terminal and try "ls Music". If the file name is still garbage, then you got it from some source that doesn't use Unicode and you just need to rename it manually.

I doubt that the problem is the font that's being used in that file manager. If it lacked Cyrillic, it would show little boxes rather than code numbers, or the the GUI would just find the characters in another font.
 
1 members found this post helpful.
Old 12-11-2016, 11:15 AM   #5
LiFo14
LQ Newbie
 
Registered: Jan 2016
Location: Russia
Distribution: Fedora, Mac OS, Gentoo
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by DavidMcCann View Post
Open a terminal and try "ls Music". If the file name is still garbage, then you got it from some source that doesn't use Unicode and you just need to rename it manually.

I doubt that the problem is the font that's being used in that file manager. If it lacked Cyrillic, it would show little boxes rather than code numbers, or the the GUI would just find the characters in another font.
I think manual renaming is the solution. Programs like VLC recognize original title.
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2016-12-11 20-14-13.png
Views:	26
Size:	141.5 KB
ID:	23737  
 
Old 12-12-2016, 10:50 AM   #6
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,158

Rep: Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318
Yes, VLC will read the name of the track from inside the file, rather than the name of the file, so it is just the file name that's wrong. It's obviously not been converted from Windows's UTF-16 encoding to Linux's UTF-8.
 
Old 12-12-2016, 11:54 AM   #7
LiFo14
LQ Newbie
 
Registered: Jan 2016
Location: Russia
Distribution: Fedora, Mac OS, Gentoo
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by DavidMcCann View Post
Yes, VLC will read the name of the track from inside the file, rather than the name of the file, so it is just the file name that's wrong. It's obviously not been converted from Windows's UTF-16 encoding to Linux's UTF-8.
Is there some packages to add UTF-16 support? Or I should manually/with some script change file names? Saw this recently, it may be the solution.
 
Old 12-13-2016, 10:46 AM   #8
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,158

Rep: Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318Reputation: 2318
That other post is about text files being converted with iconv. There is a tool for file names, which I've only just discovered (one of the good things about answering questions): convmv.
http://www.j3e.de/linux/convmv/man/
That looks like what you need.
 
Old 12-14-2016, 02:12 AM   #9
LiFo14
LQ Newbie
 
Registered: Jan 2016
Location: Russia
Distribution: Fedora, Mac OS, Gentoo
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by DavidMcCann View Post
That other post is about text files being converted with iconv. There is a tool for file names, which I've only just discovered (one of the good things about answering questions): convmv.
http://www.j3e.de/linux/convmv/man/
That looks like what you need.
I agree, a ton of things can be learnt by answering questions from other people
Yes, it is great utility. But I'll better rename files manually...
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2016-12-14 11-06-29.png
Views:	31
Size:	54.5 KB
ID:	23767  
 
  


Reply

Tags
encoding


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Extracting the title from an html file RandomTroll Linux - Software 6 06-17-2013 08:14 PM
[SOLVED] Terminal xterm Title is too dynamic (title doesn't change manually) ZeroDaHero Slackware 4 11-04-2012 12:16 PM
file encoding..?? peedaro Linux - General 7 11-20-2007 01:20 AM
How to create a header file in Unicode codepage -1200 Encoding in linux Mini Singh Linux - General 0 05-25-2007 08:10 AM
file encoding yuubouna Linux - General 3 01-16-2007 01:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration