You are not logged in.
Pages: 1
Topic closed
Hi,
I am getting errors when using the characters "æ", "ø" and "å" in file names. I am receive an error talking about "invalid encoding". Is there any way to configure my Arch Linux system to support that? I have yet to find anything about this on the internet.
Thank you very much in advance,
Bastian
Last edited by Bastian (2012-11-01 22:14:35)
Offline
Sounds like a locale issue. Look into the relevant files ( /etc/locale.gen /etc/locale.conf ) and the locale command.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
I have edited /etc/locale.gen, used a danish locale, run locale-gen and restarted my system, but any name which uses "æ", "ø", or "å" in it is still considered invalid in Nautilus. I am using Gnome 3.4.
Last edited by Bastian (2012-08-30 08:56:35)
Offline
Post the output of:
$ locale -a
$ localeAnd post a screenshot. It could be the font missing those glyphs.
Edit: And your /etc/fstab, in case you're mounting it with any strange option.
Last edited by DSpider (2012-08-30 10:02:43)
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
Here is the output of "locale -a" and "locale".
[bastian@archbook ~]$ locale -a
C
POSIX
da_DK
da_DK.iso88591
danish
dansk[bastian@archbook ~]$ locale
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=And the content inside /etc/fstab:
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
UUID=a83d475e-9cc0-4130-8088-09a602339a16 none swap defaults 0 0
UUID=f57e7536-fed4-4457-8998-5251ace2fc80 / ext3 defaults,noatime 0 1Offline
You don't have a LOCALE set in /etc/rc.conf, do you?
Since rc.conf has been split recently (this is how rc.conf looks like now), I suggest you use /etc/locale.conf.
# tee /etc/locale.conf <<< "LANG=da_DK.UTF-8"I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
Also, you will want to enable da_DK.UTF-8 in locale.gen.
Offline
Too be blunt, don't use those special characters, it makes life much easier. If you follow this advice, it will also ensure portability.
However, you should enable the correct locale in any case, that is da_DK, in /etc/locale.conf, run locale-gen, edit/create vconsole.conf to reflect the locale you want to use, etc.
I am a philosopher, of sorts, not a troll or an imbecile.
My apologies that this is not always obvious, despite my best efforts.
Offline
Also, you will want to enable da_DK.UTF-8 in locale.gen.
He already did (as per "locale -a").
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
Hi again,
I followed zacariaz' advice about simply ignoring the issue and use non-danish characters. However, I have stumbled into a new issue that requires this issue to be fixed. I have discovered that Chromium doesn't want to download files with filenames containing "æ", "ø", or "å" and that is quite annoying. Does anyone have any clue? Thank you very much in advance - and thanks to everybody who already tried to help me out.
- Bastian
Last edited by Bastian (2012-10-30 21:15:32)
Offline
I cannot say precisely why chromium would be behaving as you describe, but in any case, special characters is not handled the same way whether you're in terminal or X11.
In any case, might you be able to post a link containing æ, ø or å, so that I might investigate if I have the same problem? I've got the same setup as you, more or less, but have never experienced anything like this.
I am a philosopher, of sorts, not a troll or an imbecile.
My apologies that this is not always obvious, despite my best efforts.
Offline
@zacariaz:
Here is a link to a tarball with a filename containing "æ","ø" and "å".
http://rvzt.net/Temp/htmlcxx-0.84%C3%A6 … %A5.tar.gz
When I try to download this file I end up with a file in my home folder called "Downloads (1)" and the number changes depending on the amount of times I have tried to download it. I believe this is because chromium is trying to rename the file after having downloaded it, but is unable to do so. When trying to download with Epiphany there is no problem.
Offline
Downloads here, no problem. You should use da_DK.UTF-8, not da_DK.iso88591. Actually, the last one should work too, but now the most programs want to use Unicode, which means the UTF-8 at the end. I don't think it is an font issue, it's only a quastion of incoding.
But, proper fonts would be ttf-dejavu or ttf-droid.
Also put LANG="da_DK.UTF-8" into your /etc/environment .
Strawberry fields forever!
Offline
Thank you for the suggestion i18nde. I changed /etc/locale.gen to use da_DK.UTF-8 instead of ISO and I put LANG="da_DK.UTF-8" into my /etc/environment file too. I also ran locale-gen with root rights afterwards. Well, my computer is starting up with a logon screen in danish now, but I still can't have filenames containing "æ", "ø" or "å" letters unfortunately. ![]()
Here is a screenshot of the error message:
Last edited by Bastian (2012-11-01 13:47:03)
Offline
@zacariaz:
Here is a link to a tarball with a filename containing "æ","ø" and "å".http://rvzt.net/Temp/htmlcxx-0.84%C3%A6 … %A5.tar.gz
When I try to download this file I end up with a file in my home folder called "Downloads (1)" and the number changes depending on the amount of times I have tried to download it. I believe this is because chromium is trying to rename the file after having downloaded it, but is unable to do so. When trying to download with Epiphany there is no problem.
Works fine for me.
I am a philosopher, of sorts, not a troll or an imbecile.
My apologies that this is not always obvious, despite my best efforts.
Offline
(Edited)
After switching to systemd and upgrading to Gnome 3.6 the issue is now solved. I can rename files to have "æ" "ø" and "å" and downloading files work fine too.
EDIT:
However, Chromium still seems to dislike filenames with "æ", "ø" and "å" in them. oh well, seems like I was a little bit too fast there ![]()
Last edited by Bastian (2012-11-01 22:15:33)
Offline
Tils solved the problem for me (plasma KDE):
1. Delete: ~/.config/plasma-locale-settings.sh
2. Reboot
Offline
https://wiki.archlinux.org/index.php/Co … bumping.22
http://weknowmemes.com/generator/upload … 378224.jpg
-- mod note: img -> url tags. Trilby --
Last edited by Trilby (2017-04-26 10:49:57)
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
Welcome to the forums eenilsson - please see the forum guidelines, specifically the one linked above.
Closed.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Pages: 1
Topic closed