Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Encoding troubles
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Farmboy
n00b
n00b


Joined: 10 Jul 2011
Posts: 22

PostPosted: Mon Jul 16, 2012 2:08 pm    Post subject: Encoding troubles Reply with quote

Hello,
I am running gentoo on amd64 with KDE
as DE and my LANG variable is set to de_DE@euro
which maps to the charset ISO-8859-15.

I have a website which has content in UTF-8
including links to files with german umlauts.

if I open that website in firefox and click on
the file then firefox tries to open libreoffice
but the file name it gives to libre office is encoded
in UTF-8 but the name of the file in tmp has been encoded using
the system encoding of ISO-8859-15.
So opening the file in libre office fails.

If I change the system charset to UTF-8 firefox works
but then I have troubles using eclipse because
the content of files there are encoded using ISO-8859-15
and it looks like it also tries to resolve file names
with that encoding.

Is there something I can do to make GTK apps
behave correctly no matter what system charset
i choose?

Or are these bugs of firefox and eclipse because the app developers
dont convert file names to the system locale?

Any insight in this matter would be appreciated
Thank you very much
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Mon Jul 16, 2012 9:27 pm    Post subject: Reply with quote

I strongly suggest to use a UTF-8 locale, in your case de_DE.UTF-8.
If eclipse does not behave correctly then, search an according setting of eclipse.
To check the encoding of a file use can use file -i.
To convert existing files to a different charset/encoding there is iconv.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum