LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 06-01-2003, 04:33 PM   #1
Bjornkri
LQ Newbie
 
Registered: Feb 2003
Distribution: Mandrake 9.0
Posts: 15

Rep: Reputation: 0
"Special" characters...


I don't get 'proper' characters in some places, and I have no idea what is causing it. Here's an example:

$ perl -e "print \" \n\""
þ æ ö

Very annoying indeed as I'm using perl for language processing and I need those "special" characters

Any ideas?

Last edited by Bjornkri; 06-01-2003 at 04:34 PM.
 
Old 06-03-2003, 03:37 PM   #2
Bjornkri
LQ Newbie
 
Registered: Feb 2003
Distribution: Mandrake 9.0
Posts: 15

Original Poster
Rep: Reputation: 0
No one? :\

Last edited by Bjornkri; 06-03-2003 at 03:38 PM.
 
Old 06-03-2003, 04:25 PM   #3
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 49
You need to post more information about your setup before we can help you with this. There are various reasons you could be having the problem.
 
Old 06-04-2003, 12:36 PM   #4
Bjornkri
LQ Newbie
 
Registered: Feb 2003
Distribution: Mandrake 9.0
Posts: 15

Original Poster
Rep: Reputation: 0
Yeah, well.. I don't really know what to say or where to look.

I've got Redhat 9. Icelandic keyboard and region settings, English language...
 
Old 06-04-2003, 05:35 PM   #5
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 49
What is the problem? when does the problem happen? does it only happen when you do things with Perl? does this happen in X or on the command line?
At first glance, it appears as though Perl isn't handling the font set correctly. Can you use echo to output the characters correctly?
 
Old 06-04-2003, 05:48 PM   #6
Bjornkri
LQ Newbie
 
Registered: Feb 2003
Distribution: Mandrake 9.0
Posts: 15

Original Poster
Rep: Reputation: 0
The problem happens in.. well.. some places.

XMMS displays the fonts wrong, perl does, gvim does, changing the KDE language to Icelandic makes KDE look all wrong.
Terminal works fine Mozilla, XChat (now), Office... Those all work just fine.

This happens in both X and on the command line. Not when I write the letters, as the original example I posted shows (provided that was displayed correctly). The returned output is strange though.

$ echo


So echo works fine as well.
 
Old 06-04-2003, 06:13 PM   #7
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 49
I don't know what font set Perl, XMMS, or gvim use by default, but they're not getting the same fonts as your terminal, Mozilla, etc.
Are you running a font server in X? what (and where) is the font that is being used by Mozilla? terminal? Office?
 
Old 06-04-2003, 06:29 PM   #8
Bjornkri
LQ Newbie
 
Registered: Feb 2003
Distribution: Mandrake 9.0
Posts: 15

Original Poster
Rep: Reputation: 0
I THINK I'm on the right track... I found similar troubles for German, although they were limited to XML/HTML only.

The problem seems to be that the most of system is using UTF-8, when it should be Latin 1 (ISO-something-1.. ).

Any idea where to set this?

I'm absolutely clueless as to why this could have happened really, I don't remember changing anything like that during the installation process, but I might have. But well, I'm a bit of a n00b so I really can't answer your question :\
 
Old 06-04-2003, 07:01 PM   #9
Bjornkri
LQ Newbie
 
Registered: Feb 2003
Distribution: Mandrake 9.0
Posts: 15

Original Poster
Rep: Reputation: 0
Ok, this is working acceptably now. X appears to display everything correctly now. The same can't be said for the out-of-X command line where a few letters still appear garbled. But I can live with that for now. Thanks for getting me on track!
 
Old 06-05-2003, 12:47 AM   #10
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 49
What have you done so far? If you found the correct font, you can almost certainly set it to be the font used in the command line as well.
 
Old 06-05-2003, 02:42 AM   #11
Bjornkri
LQ Newbie
 
Registered: Feb 2003
Distribution: Mandrake 9.0
Posts: 15

Original Poster
Rep: Reputation: 0
I modified /etc/sysconfig/i18n to look like this:

LANG="en_GB.iso885915"
SUPPORTED="en_GB.iso885915:en_GB:en"
SYSFONT="iso01.16"
SYSFONTACM="iso15"

I just noticed that there's an error message on boot that iso15 wasn't found.. I'll have to look that up again, I literally turned my computer on again 2 minutes ago, so that might be the problem
 
Old 06-08-2003, 07:40 AM   #12
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 49
For messing with the fonts in the console, you might take a look at this thread:
http://www.linuxquestions.org/questi...highlight=font
 
  


Reply


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
Anyone else receiving "special software discounts" emails? harken General 14 06-15-2005 12:52 AM
Print "special" characters blas Linux - Newbie 3 02-09-2005 03:40 PM
cdrom not recogonized/no hda/"special device" not found etc. thechao Debian 1 01-23-2005 04:42 PM
need help, on how to access quickly to special characters like "" or ""? Motaro Linux - Newbie 1 12-31-2003 11:53 AM
Ximian crashes when I enter "special chars" into message borbjo Linux - Software 0 01-28-2003 07:31 AM


All times are GMT -5. The time now is 12:30 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration