Jump to content


Photo

Can't display special characters in filenames, locale problem?


  • Please log in to reply
24 replies to this topic

#1 dupa1234

  • Member
  • 10 posts

0
Neutral

Posted 23 April 2022 - 03:49

Hi guys, please help me because I'm fighting with my problem for 2 days now.

 

I installed transmission torrent client. Someone thought it's a good idea to put special characters inside files that I am supposed to seed. I can't rename the file because the tracker doesn't see it as the same file anymore.

 

So file name that is supposed to look like this: "...03] • Fin..."

Looks like this instead: "...03] ? Fin..."

 

I can't even delete it using Putty and have to delete it using inode number

 

From what I googled so far I need to fix my locale but OpenPli doesn' recognize locale command.

 

I found this file .config/locale.conf and here is the output:

export LC_TIME="en_EN.UTF-8"
export LC_DATE="en_EN.UTF-8"
export LC_MONETARY="POSIX"
export LC_MESSAGES="en_EN.UTF-8"
export LC_NUMERIC="POSIX"
export LC_NAME="POSIX"
export LC_TELEPHONE="POSIX"
export LC_ADDRESS="POSIX"
export LC_PAPER="POSIX"
export LC_IDENTIFICATION="POSIX"
export LC_MEASUREMENT="POSIX"
export LANG="en_EN.UTF-8"

 

So looks like LANG format should be good.

 

I even tried to mount USB drive manually with vfat filesystem and flag iocharset=utf8 in fstab and still name does not display correctly.

 

Please help, I'm out of ideas.

 



Re: Can't display special characters in filenames, locale problem? #2 Dimitrij

  • PLi® Core member
  • 10,328 posts

+350
Excellent

Posted 23 April 2022 - 08:41

Format USB ext4?


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: Can't display special characters in filenames, locale problem? #3 dupa1234

  • Member
  • 10 posts

0
Neutral

Posted 23 April 2022 - 08:43

It's formatted to ext3. I believe it should be fine.

 

EDIT: Formatted as ext4. Same problem. Displaying question mark in place of special character


Edited by dupa1234, 23 April 2022 - 08:46.


Re: Can't display special characters in filenames, locale problem? #4 Dimitrij

  • PLi® Core member
  • 10,328 posts

+350
Excellent

Posted 23 April 2022 - 08:49

Send this *name.torrent(dima-73@inbox.lv).


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: Can't display special characters in filenames, locale problem? #5 dupa1234

  • Member
  • 10 posts

0
Neutral

Posted 23 April 2022 - 09:01

Send this *name.torrent(dima-73@inbox.lv).

Just sent you PM.



Re: Can't display special characters in filenames, locale problem? #6 Dimitrij

  • PLi® Core member
  • 10,328 posts

+350
Excellent

Posted 23 April 2022 - 09:30

Create folder "Vale, Lani Lynn - [Freebirds 02] • Highway Don't Care" in PC(win7) and copy through FTP.


Edited by Dimitrij, 23 April 2022 - 09:31.

GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: Can't display special characters in filenames, locale problem? #7 dupa1234

  • Member
  • 10 posts

0
Neutral

Posted 23 April 2022 - 09:34

Create folder "Vale, Lani Lynn - [Freebirds 02] • Highway Don't Care" in PC(win7) and copy through FTP.

I did that before, after copying folder changes name to Vale, Lani Lynn - [Freebirds 02] ? Highway Don't Care

 

and I can't delete the folder unless I check the inode number and delete by that method.

 

I just did exporiment now and I can't type euro symbol too (€).

 

How can I change locale under OpenPli?

 

Also all websites recommend running commands locale, locale -a but OpenPli does not recognize these commands. Is the an easy way to install the utility?


Edited by dupa1234, 23 April 2022 - 09:36.


Re: Can't display special characters in filenames, locale problem? #8 WanWizard

  • PLi® Core member
  • 70,534 posts

+1,811
Excellent

Posted 23 April 2022 - 10:12

On the commandline you need to quote and escape:

mkdir "Vale, Lani Lynn - [Freebirds 02] \? Highway Don't Care"

 


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Can't display special characters in filenames, locale problem? #9 dupa1234

  • Member
  • 10 posts

0
Neutral

Posted 23 April 2022 - 10:17

 

On the commandline you need to quote and escape:

mkdir "Vale, Lani Lynn - [Freebirds 02] \? Highway Don't Care"

Not sure what you mean by that? I don't want to create folder with question mark, I wan to avoid it and have DOT in name as I stated before. But looks like even though I have utf8 configured it still doesn't let me use that



Re: Can't display special characters in filenames, locale problem? #10 WanWizard

  • PLi® Core member
  • 70,534 posts

+1,811
Excellent

Posted 23 April 2022 - 10:59

You mean you have this problem?

root@vuduo4k:~# cd /tmp

root@vuduo4k:/tmp# mkdir "Vale, Lani Lynn - [Freebirds 02] • Highway Don't Care"

root@vuduo4k:/tmp# ls -l | grep Vale
drwxr-xr-x    2 root     root            40 Apr 23 10:58 Vale, Lani Lynn - [Freebirds 02] ? Highway Don't Care

root@vuduo4k:/tmp# 

Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Can't display special characters in filenames, locale problem? #11 dupa1234

  • Member
  • 10 posts

0
Neutral

Posted 23 April 2022 - 11:02

Yes exactly, now if you try to delete the folder and you start typing "rm Vale" and hit TAB button, in my case instead of finishing the name of the folder, it clears the line in putty, like it doesn't like the name with this character.

 

Also because of that, transmission doesn't see that I'm seeding this file correctly.

 

I hope it's an easy fix with locale or coding

 

Also all you have to do is simply copy the dot to clipboard and type in putty, it should change it to ? immediately.


Edited by dupa1234, 23 April 2022 - 11:03.


Re: Can't display special characters in filenames, locale problem? #12 WanWizard

  • PLi® Core member
  • 70,534 posts

+1,811
Excellent

Posted 23 April 2022 - 11:07

This looks like a display issue of the ls command, if I cd into that directory, the dot is correctly displayed.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Can't display special characters in filenames, locale problem? #13 WanWizard

  • PLi® Core member
  • 70,534 posts

+1,811
Excellent

Posted 23 April 2022 - 11:09

No problem removing it:

root@vuduo4k:/tmp# ls -l | grep Vale
drwxr-xr-x    2 root     root            40 Apr 23 10:58 Vale, Lani Lynn - [Freebirds 02] ? Highway Don't Care

root@vuduo4k:/tmp# rmdir "Vale, Lani Lynn - [Freebirds 02] • Highway Don't Care"

root@vuduo4k:/tmp# ls -l | grep Vale

root@vuduo4k:/tmp#

Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Can't display special characters in filenames, locale problem? #14 dupa1234

  • Member
  • 10 posts

0
Neutral

Posted 23 April 2022 - 11:09

In my case no matter what I do I see question mark. If I connect with WinScp I see question mark, ls, cd, etc all show question mark for me. Not sure what's wrong.

 

Also if I remove the file and add the torrent file to transmission to re-download again, it will be stuck at 0% downloading forever because it simply can't create the file.



Re: Can't display special characters in filenames, locale problem? #15 WanWizard

  • PLi® Core member
  • 70,534 posts

+1,811
Excellent

Posted 23 April 2022 - 11:12

No problem when using TAB completion too:

root@vuduo4k:/tmp# mkdir "Vale, Lani Lynn - [Freebirds 02] • Highway Don't Care"

root@vuduo4k:/tmp# rmdir Vale\,\ Lani\ Lynn\ -\ \[Freebirds\ 02\]\ •\ Highway\ Don\'t\ Care

root@vuduo4k:/tmp# 

 


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Can't display special characters in filenames, locale problem? #16 WanWizard

  • PLi® Core member
  • 70,534 posts

+1,811
Excellent

Posted 23 April 2022 - 11:13

I can only assume Windows is the problem here, as that (as an OS) doesn't understand utf-8.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Can't display special characters in filenames, locale problem? #17 dupa1234

  • Member
  • 10 posts

0
Neutral

Posted 23 April 2022 - 11:15

I don't think it's a WIndows issue, Windows displays the file correctly from qbittorent. Also I skip windows completely when I add the file to transmission client. Transmission also can't download the file. I will try to play with another image maybe


Edited by dupa1234, 23 April 2022 - 11:18.


Re: Can't display special characters in filenames, locale problem? #18 WanWizard

  • PLi® Core member
  • 70,534 posts

+1,811
Excellent

Posted 23 April 2022 - 11:19

I doubt the image is the issue, as I've shown above.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Can't display special characters in filenames, locale problem? #19 WanWizard

  • PLi® Core member
  • 70,534 posts

+1,811
Excellent

Posted 23 April 2022 - 11:27

I don't think it's a WIndows issue, Windows displays the file correctly from qbittorent.

 

Windows doesn't display it, qbittorrent does. In the same way a browser is capable of displaying unicode. That is unrelated to the characterset the OS uses.

That means that if you create files from Windows on the box (for example to define torrents) you have to use an editor that explicitly creates utf-8 files, as the OS can't.

 

Transmission itself, and the linux filesystem you use are utf-8 compliant, so that is not the problem.

 

The internet is littered with users having similar issues related to something in the chain not being utf-8.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Can't display special characters in filenames, locale problem? #20 dupa1234

  • Member
  • 10 posts

0
Neutral

Posted 23 April 2022 - 11:39

 

I don't think it's a WIndows issue, Windows displays the file correctly from qbittorent.

 

Windows doesn't display it, qbittorrent does. In the same way a browser is capable of displaying unicode. That is unrelated to the characterset the OS uses.

That means that if you create files from Windows on the box (for example to define torrents) you have to use an editor that explicitly creates utf-8 files, as the OS can't.

 

Transmission itself, and the linux filesystem you use are utf-8 compliant, so that is not the problem.

 

The internet is littered with users having similar issues related to something in the chain not being utf-8.

 

 

Looks like you are right, I once again added file to transmission and this time it created it correctly even though putty still shows question marks.

 

But I wonder why, in putty translation menu I have selected utf8 by default




3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users