You are not logged in.

#1 2012-08-29 19:49:17

Bastian
Member
Registered: 2012-05-17
Posts: 43

Using special characters (æøå) in file names

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

#2 2012-08-29 19:51:55

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: Using special characters (æøå) in file names

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

#3 2012-08-29 20:15:48

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Using special characters (æøå) in file names


"How to Succeed with Linux"

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

#4 2012-08-30 08:56:11

Bastian
Member
Registered: 2012-05-17
Posts: 43

Re: Using special characters (æøå) in file names

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

#5 2012-08-30 10:00:59

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Using special characters (æøå) in file names

Post the output of:

$ locale -a
$ locale

And 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)


"How to Succeed with Linux"

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

#6 2012-08-30 10:30:01

Bastian
Member
Registered: 2012-05-17
Posts: 43

Re: Using special characters (æøå) in file names

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 1

Offline

#7 2012-08-30 10:44:21

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Using special characters (æøå) in file names

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"

"How to Succeed with Linux"

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

#8 2012-08-30 15:16:15

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: Using special characters (æøå) in file names

Also, you will want to enable da_DK.UTF-8 in locale.gen.

Offline

#9 2012-09-01 21:08:26

zacariaz
Member
From: Denmark
Registered: 2012-01-18
Posts: 539

Re: Using special characters (æøå) in file names

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

#10 2012-09-02 07:38:16

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Using special characters (æøå) in file names

ataraxia wrote:

Also, you will want to enable da_DK.UTF-8 in locale.gen.

He already did (as per "locale -a").


"How to Succeed with Linux"

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

#11 2012-10-30 21:15:07

Bastian
Member
Registered: 2012-05-17
Posts: 43

Re: Using special characters (æøå) in file names

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

#12 2012-10-31 14:53:27

zacariaz
Member
From: Denmark
Registered: 2012-01-18
Posts: 539

Re: Using special characters (æøå) in file names

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

#13 2012-11-01 11:48:47

Bastian
Member
Registered: 2012-05-17
Posts: 43

Re: Using special characters (æøå) in file names

@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

#14 2012-11-01 12:14:08

i18nde
Member
From: Xi'an, P.R. of China
Registered: 2011-05-16
Posts: 17

Re: Using special characters (æøå) in file names

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

#15 2012-11-01 13:45:57

Bastian
Member
Registered: 2012-05-17
Posts: 43

Re: Using special characters (æøå) in file names

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. hmm

Here is a screenshot of the error message:
2BDRS.png

Last edited by Bastian (2012-11-01 13:47:03)

Offline

#16 2012-11-01 15:45:31

zacariaz
Member
From: Denmark
Registered: 2012-01-18
Posts: 539

Re: Using special characters (æøå) in file names

Bastian wrote:

@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

#17 2012-11-01 22:13:03

Bastian
Member
Registered: 2012-05-17
Posts: 43

Re: Using special characters (æøå) in file names

(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 hmm

Last edited by Bastian (2012-11-01 22:15:33)

Offline

#18 2017-04-26 09:26:26

eeenilsson
Member
Registered: 2017-04-26
Posts: 11

Re: Using special characters (æøå) in file names

Tils solved the problem for me (plasma KDE):

1. Delete: ~/.config/plasma-locale-settings.sh
2. Reboot

From: https://bbs.archlinux.org/viewtopic.php?id=184136

Offline

#19 2017-04-26 09:56:45

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: Using special characters (æøå) in file names

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

#20 2017-04-26 10:50:25

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: Using special characters (æøå) in file names

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

Board footer

Powered by FluxBB