LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   "Special" characters... (https://www.linuxquestions.org/questions/linux-newbie-8/special-characters-63082/)

Bjornkri 06-01-2003 04:33 PM

"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? :)

Bjornkri 06-03-2003 03:37 PM

No one? :\

moses 06-03-2003 04:25 PM

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.

Bjornkri 06-04-2003 12:36 PM

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

moses 06-04-2003 05:35 PM

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?

Bjornkri 06-04-2003 05:48 PM

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.

moses 06-04-2003 06:13 PM

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?

Bjornkri 06-04-2003 06:29 PM

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.. :p).

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 :\

Bjornkri 06-04-2003 07:01 PM

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! :)

moses 06-05-2003 12:47 AM

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.

Bjornkri 06-05-2003 02:42 AM

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

moses 06-08-2003 07:40 AM

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


All times are GMT -5. The time now is 09:17 AM.