views:

284

answers:

6

Java 1.5, Linux

I do have a screen which contains different textareas and textfields. I do have acess to the application frame, but not to the components inside the frame, because i only get an implementation of an interface.

When i try to add german umlauts i see a rectangle in the text component, because the character is not supported. Which font or which system-propertiy i have to set to support "umlauts" under linux. On windows the characters are shown correctly.

A: 

The square box is the unicode symbol for when the character in question can't be displayed as the font doesn't contain it.

You'll either need to switch the text boxes to a font that does contain the German characters, or find some other way of doing the substitution for just that character (which may not be possible within Java).

Douglas Leeder
+1  A: 

It sounds like a character encoding problem or font problem... Like using "windows" encoding in a Linux environment. You should check the following:

  • Can you write those characters in a normal texteditor in your linux distro?
  • Are those characters from input files in your java application or is it from the source, if so what OS did you use to write the source?
  • If they are from a source file or resource file, have you checked that the characters is actually readable in the sourcefile in Linux?
  • If you open the sourcefile in for instance vim, what encoding does it use? (It usually says in the lower part of the screen just after you opened the file)

If you tell what happens when you do this, we may have a better idea of what is wrong. :)

UPDATE: The reason I wanted you to check this is that I know the so called "windows encoding" can create problems in other OS'es. You say you can write umlauts on the console but not in vi, what do you get instead, squares?

It does't matter that users isn't supposes to view the ini file, if you created the ini files manually in Linux I suppose you were able to write umlauts then. You should find out what character encoding these files and the TCP connection uses. It should be UTF-8, "Western" or "Windows" or "Latin-1" etc. may cause problems.

If everything is UTF-8, readable everywhere except in your application I would start to suspect a missing font issue.

Stein G. Strindhaug
I will check this right now.
Markus Lausberg
Just curious: what did turn out to be the problem? I suggested a lot of stuff you should check, so I don't really know what fixed it.
Stein G. Strindhaug
+1  A: 

My guess is that the desktop (KDE or Gnome) is configured to use a font which doesn't contain umlauts (kind of strange, today, but it happens). Java usually tries to use the system font as a basis to calculate the "Dialog" font (which is always available even if it is not installed; "Dialog" is a virtual font name which Java uses to say "Default sans-serif font").

  • Check which fonts are installed with xlsfonts
  • Check whether you can enter the umlauts in the console
  • Try a different Java app
  • Check $JAVA_HOME/jre/lib/fonts (IIRC). I think you can find font mappings in there.
Aaron Digulla
A: 
  • Can you write those characters in a normal texteditor in your linux distro?

"vi" does not show äöü

  • Are those characters from input files in your java application or is it from the source, if so what OS did you use to write the source?

string was send by a tcp connection or is read from a ini file which was created on the os

  • If they are from a source file or resource file, have you checked that the characters is actually readable in the sourcefile in Linux?

Will not happen, is not important

  • If you open the sourcefile in for instance vim, what encoding does it use? (It usually says in the lower part of the screen just after you opened the file)

Can i not test at the moment

Markus Lausberg
A: 
  • Check whether you can enter the umlauts in the console

On console i can tip äöü

echo $TERM --> vt100
  • Check which fonts are installed with xlsfonts

Command:

'find / | grep font'

Result:

/etc/fonts
/etc/fonts/conf.d
/etc/fonts/conf.d/unhinted.conf
/etc/fonts/conf.d/autohint.conf
/etc/fonts/conf.d/sub-pixel.conf
/etc/fonts/conf.d/yes-bitmaps.conf
/etc/fonts/conf.d/no-sub-pixel.conf
/etc/fonts/conf.d/no-bitmaps.conf
/etc/fonts/fonts.dtd
/etc/fonts/fonts.conf
/opt/jdk/j2re1.4.2_16/lib/fonts
/opt/jdk/j2re1.4.2_16/lib/fonts/LucidaBrightDemiBold.ttf
/opt/jdk/j2re1.4.2_16/lib/fonts/LucidaBrightDemiItalic.ttf
/opt/jdk/j2re1.4.2_16/lib/fonts/LucidaBrightItalic.ttf
/opt/jdk/j2re1.4.2_16/lib/fonts/LucidaBrightRegular.ttf
/opt/jdk/j2re1.4.2_16/lib/fonts/LucidaSansDemiBold.ttf
/opt/jdk/j2re1.4.2_16/lib/fonts/LucidaSansDemiOblique.ttf
/opt/jdk/j2re1.4.2_16/lib/fonts/LucidaSansOblique.ttf
/opt/jdk/j2re1.4.2_16/lib/fonts/LucidaSansRegular.ttf
/opt/jdk/j2re1.4.2_16/lib/fonts/LucidaTypewriterBold.ttf
/opt/jdk/j2re1.4.2_16/lib/fonts/LucidaTypewriterBoldOblique.ttf
/opt/jdk/j2re1.4.2_16/lib/fonts/LucidaTypewriterOblique.ttf
/opt/jdk/j2re1.4.2_16/lib/fonts/LucidaTypewriterRegular.ttf
/opt/jdk/j2re1.4.2_16/lib/fonts/fonts.dir
/opt/jdk/j2re1.4.2_16/lib/font.properties
/opt/jdk/j2re1.4.2_16/lib/font.properties.Redhat6.1
/opt/jdk/j2re1.4.2_16/lib/font.properties.Redhat8.0
/opt/jdk/j2re1.4.2_16/lib/font.properties.SuSE8.0
/opt/jdk/j2re1.4.2_16/lib/font.properties.ja
/opt/jdk/j2re1.4.2_16/lib/font.properties.ja.Redhat3
/opt/jdk/j2re1.4.2_16/lib/font.properties.ja.Redhat4
/opt/jdk/j2re1.4.2_16/lib/font.properties.ja.Redhat6.1
/opt/jdk/j2re1.4.2_16/lib/font.properties.ja.Redhat6.2
/opt/jdk/j2re1.4.2_16/lib/font.properties.ja.Redhat7.2
/opt/jdk/j2re1.4.2_16/lib/font.properties.ja.Redhat7.3
/opt/jdk/j2re1.4.2_16/lib/font.properties.ja.Redhat8.0
/opt/jdk/j2re1.4.2_16/lib/font.properties.ja.Turbo
/opt/jdk/j2re1.4.2_16/lib/font.properties.ja.Turbo6.0
/opt/jdk/j2re1.4.2_16/lib/font.properties.ja_JP.Sun
/opt/jdk/j2re1.4.2_16/lib/font.properties.ja_JP.Sun2003
/opt/jdk/j2re1.4.2_16/lib/font.properties.ja_JP_UTF8.Sun
/opt/jdk/j2re1.4.2_16/lib/font.properties.ja_JP_UTF8.Sun2003
/opt/jdk/j2re1.4.2_16/lib/font.properties.ko.Redhat
/opt/jdk/j2re1.4.2_16/lib/font.properties.ko.Redhat2.1
/opt/jdk/j2re1.4.2_16/lib/font.properties.ko_KR.Sun
/opt/jdk/j2re1.4.2_16/lib/font.properties.ko_KR_UTF8.Sun
/opt/jdk/j2re1.4.2_16/lib/font.properties.ko_KR_UTF8.Sun2003
/opt/jdk/j2re1.4.2_16/lib/font.properties.zh.Turbo
/opt/jdk/j2re1.4.2_16/lib/font.properties.zh_CN.Redhat
/opt/jdk/j2re1.4.2_16/lib/font.properties.zh_CN.Redhat2.1
/opt/jdk/j2re1.4.2_16/lib/font.properties.zh_CN.Redhat4
/opt/jdk/j2re1.4.2_16/lib/font.properties.zh_CN.Sun
/opt/jdk/j2re1.4.2_16/lib/font.properties.zh_CN_UTF8.Sun
/opt/jdk/j2re1.4.2_16/lib/font.properties.zh_HK.Sun
/opt/jdk/j2re1.4.2_16/lib/font.properties.zh_HK_UTF8.Sun
/opt/jdk/j2re1.4.2_16/lib/font.properties.zh_HK_UTF8.Sun2003
/opt/jdk/j2re1.4.2_16/lib/font.properties.zh_TW.Redhat
/opt/jdk/j2re1.4.2_16/lib/font.properties.zh_TW.Redhat2.1
/opt/jdk/j2re1.4.2_16/lib/font.properties.zh_TW.Sun
/opt/jdk/j2re1.4.2_16/lib/font.properties.zh_TW_UTF8.Sun
/opt/jdk/j2re1.4.2_16/lib/font.properties.zh_TW_UTF8.Sun2003
/opt/jdk/j2re1.4.2_16/lib/i386/libfontmanager.so
/opt/jdk/j2re1.4.2_16/lib/psfont.properties.ja
/opt/jdk/j2re1.4.2_16/lib/psfontj2d.properties
/tmp/fonts.txt
/usr/bin/splitfont
/usr/bin/setfont
/usr/bin/showcfont
/usr/bin/font2psf
/usr/lib/libXfont.so.1
/usr/lib/libfontconfig.so.1.0.4
/usr/lib/libfontenc.so.1
/usr/lib/xorg/modules/fonts
/usr/lib/xorg/modules/fonts/libfreetype.so
/usr/lib/xorg/modules/fonts/libbitmap.so
/usr/lib/xorg/modules/fonts/libtype1.so
/usr/lib/libfontmanager.so
/usr/lib/libcfont.so.0.0.0
/usr/lib/libfontenc.so.1.0.0
/usr/lib/libXfont.so.1.4.1
/usr/lib/libcfont.so.0
/usr/lib/libfontconfig.so.1
/usr/share/fonts
/usr/share/fonts/X11
/usr/share/fonts/X11/Type1
/usr/share/fonts/X11/Type1/n021023l.pfb
/usr/share/fonts/X11/Type1/n019003l.pfb
/usr/share/fonts/X11/Type1/fonts.alias
/usr/share/fonts/X11/Type1/n021024l.pfb
/usr/share/fonts/X11/Type1/n019004l.pfb
/usr/share/fonts/X11/Type1/fonts.scale
/usr/share/fonts/X11/Type1/c0648bt_.afm
/usr/share/fonts/X11/Type1/c0648bt_.pfb
/usr/share/fonts/X11/Type1/c0583bt_.afm
/usr/share/fonts/X11/Type1/c0583bt_.pfb
/usr/share/fonts/X11/Type1/fonts.dir
/usr/share/fonts/X11/Type1/c0611bt_.afm
/usr/share/fonts/X11/Type1/c0611bt_.pfb
/usr/share/fonts/X11/Type1/n022003l.pfb
/usr/share/fonts/X11/Type1/n022004l.pfb
/usr/share/fonts/X11/Type1/n019023l.pfb
/usr/share/fonts/X11/Type1/n019024l.pfb
/usr/share/fonts/X11/Type1/cursor.pfa
/usr/share/fonts/X11/Type1/c0419bt_.afm
/usr/share/fonts/X11/Type1/c0419bt_.pfb
/usr/share/fonts/X11/Type1/c0582bt_.afm
/usr/share/fonts/X11/Type1/c0582bt_.pfb
/usr/share/fonts/X11/Type1/c0633bt_.afm
/usr/share/fonts/X11/Type1/c0633bt_.pfb
/usr/share/fonts/X11/Type1/n022023l.pfb
/usr/share/fonts/X11/Type1/n022024l.pfb
/usr/share/fonts/X11/Type1/n019043l.pfb
/usr/share/fonts/X11/Type1/n019044l.pfb
/usr/share/fonts/X11/Type1/c0649bt_.afm
/usr/share/fonts/X11/Type1/c0649bt_.pfb
/usr/share/fonts/X11/Type1/n021003l.pfb
/usr/share/fonts/X11/Type1/n021004l.pfb
/usr/share/fonts/X11/Type1/n019063l.pfb
/usr/share/fonts/X11/Type1/n019064l.pfb
/usr/share/fonts/X11/Type1/c0632bt_.afm
/usr/share/fonts/X11/Type1/c0632bt_.pfb
/usr/share/fonts/X11/misc
/usr/share/fonts/X11/misc/fonts.dir
/usr/share/fonts/X11/misc/clR5x6.pcf.gz
/usr/share/fonts/X11/misc/9x18-ISO8859-11.pcf.gz
/usr/share/fonts/X11/misc/cudevnag12.pcf.gz
/usr/share/fonts/X11/misc/gb16st.pcf.gz
/usr/share/fonts/X11/misc/7x13O-ISO8859-11.pcf.gz
/usr/share/fonts/X11/misc/8x13B-ISO8859-16.pcf.gz
/usr/share/fonts/X11/misc/encodings.dir
/usr/share/fonts/X11/misc/6x13O-ISO8859-1.pcf.gz
/usr/share/fonts/X11/misc/6x12.pcf.gz
/usr/share/fonts/X11/misc/jiskan16.pcf.gz
/usr/share/fonts/X11/misc/6x12-ISO8859-16.pcf.gz
/usr/share/fonts/X11/misc/clR4x6.pcf.gz
/usr/share/fonts/X11/misc/cu12.pcf.gz
/usr/share/fonts/X11/misc/hanglg16.pcf.gz
/usr/share/fonts/X11/misc/7x14B-ISO8859-11.pcf.gz
/usr/share/fonts/X11/misc/4x6-ISO8859-2.pcf.gz
/usr/share/fonts/X11/misc/cuarabic12.pcf.gz
/usr/share/fonts/X11/misc/4x6-ISO8859-3.pcf.gz
/usr/share/fonts/X11/misc/micro.pcf.gz
/usr/share/fonts/X11/misc/9x18B-ISO8859-1.pcf.gz
/usr/share/fonts/X11/misc/k14.pcf.gz
/usr/share/fonts/X11/misc/clR6x12-ISO8859-16.pcf.gz
/usr/share/fonts/X11/misc/clR8x16.pcf.gz
/usr/share/fonts/X11/misc/clR8x13.pcf.gz
/usr/share/fonts/X11/misc/clR7x10.pcf.gz
/usr/share/fonts/X11/misc/5x7.pcf.gz
/usr/share/fonts/X11/misc/4x6-KOI8-R.pcf.gz
/usr/share/fonts/X11/misc/9x15B-ISO8859-16.pcf.gz
/usr/share/fonts/X11/misc/4x6-ISO8859-13.pcf.gz
/usr/share/fonts/X11/misc/olgl14.pcf.gz
/usr/share/fonts/X11/misc/6x12-ISO8859-1.pcf.gz
/usr/share/fonts/X11/misc/6x13-ISO8859-11.pcf.gz
/usr/share/fonts/X11/misc/clB8x12.pcf.gz
/usr/share/fonts/X11/misc/clR6x12-ISO8859-8.pcf.gz
/usr/share/fonts/X11/misc/6x13O.pcf.gz
/usr/share/fonts/X11/misc/4x6-ISO8859-1.pcf.gz
/usr/share/fonts/X11/misc/clR6x12.pcf.gz
/usr/share/fonts/X11/misc/5x8.pcf.gz
/usr/share/fonts/X11/misc/7x13-ISO8859-16.pcf.gz
/usr/share/fonts/X11/misc/5x7-ISO8859-1.pcf.gz
/usr/share/fonts/X11/misc/7x13-ISO8859-1.pcf.gz
/usr/share/fonts/X11/misc/4x6-ISO8859-4.pcf.gz
/usr/share/fonts/X11/misc/6x10-ISO8859-1.pcf.gz
/usr/share/fonts/X11/misc/6x9-ISO8859-16.pcf.gz
/usr/share/fonts/X11/misc/4x6-ISO8859-7.pcf.gz
/usr/share/fonts/X11/misc/clR6x12-ISO8859-2.pcf.gz
/usr/share/fonts/X11/misc/clR7x12.pcf.gz
/usr/share/fonts/X11/misc/6x13B.pcf.gz
/usr/share/fonts/X11/misc/9x15-ISO8859-1.pcf.gz
/usr/share/fonts/X11/misc/clB9x15.pcf.gz
/usr/share/fonts/X11/misc/4x6.pcf.gz
/usr/share/fonts/X11/misc/6x13.pcf.gz
/usr/share/fonts/X11/misc/7x14-ISO8859-1.pcf.gz
/usr/share/fonts/X11/misc/clR7x14.pcf.gz
/usr/share/fonts/X11/misc/8x13-ISO8859-16.pcf.gz
/usr/share/fonts/X11/misc/4x6-ISO8859-10.pcf.gz
/usr/share/fonts/X11/misc/8x13O-ISO8859-1.pcf.gz
/usr/share/fonts/X11/misc/5x7-ISO8859-16.pcf.gz
/usr/share/fonts/X11/misc/10x20-ISO8859-1.pcf.gz
/usr/share/fonts/X11/misc/7x14-JISX0201.1976-0.pcf.gz
/usr/share/fonts/X11/misc/4x6-ISO8859-14.pcf.gz
/usr/share/fonts/X11/misc/clR7x8.pcf.gz
/usr/share/fonts/X11/misc/olgl19.pcf.gz
/usr/share/fonts/X11/misc/clB6x12.pcf.gz
/usr/share/fonts/X11/misc/4x6-ISO8859-9.pcf.gz
/usr/share/fonts/X11/misc/9x15.pcf.gz
/usr/share/fonts/X11/misc/7x13-ISO8859-11.pcf.gz
/usr/share/fonts/X11/misc/7x13O-ISO8859-1.pcf.gz
/usr/share/fonts/X11/misc/decsess.pcf.gz
/usr/share/fonts/X11/misc/clB8x8.pcf.gz
/usr/share/fonts/X11/misc/clR6x12-ISO8859-10.pcf.gz
/usr/share/fonts/X11/misc/5x8-ISO8859-16.pcf.gz
/usr/share/fonts/X11/misc/olgl10.pcf.gz
/usr/share/fonts/X11/misc/clB8x13.pcf.gz
/usr/share/fonts/X11/misc/6x9-ISO8859-1.pcf.gz
/usr/share/fonts/X11/misc/clR6x12-ISO8859-15.pcf.gz
/usr/share/fonts/X11/misc/4x6-ISO8859-15.pcf.gz
/usr/share/fonts/X11/misc/clR6x12-ISO8859-1.pcf.gz
/usr/share/fonts/X11/misc/fonts.alias
/usr/share/fonts/X11/misc/9x15-ISO8859-16.pcf.gz
/usr/share/fonts/X11/misc/7x14B-ISO8859-16.pcf.gz
/usr/share/fonts/X11/misc/7x13B-ISO8859-16.pcf.gz
/usr/share/fonts/X11/misc/10x20-ISO8859-11.pcf.gz
/usr/share/fonts/X11/misc/clR5x8.pcf.gz
/usr/share/fonts/X11/misc/clR6x12-ISO8859-7.pcf.gz
/usr/share/fonts/X11/misc/8x16.pcf.gz
/usr/share/fonts/X11/misc/6x10-ISO8859-16.pcf.gz
/usr/share/fonts/X11/misc/clR8x8.pcf.gz
/usr/share/fonts/X11/misc/8x13-ISO8859-1.pcf.gz
/usr/share/fonts/X11/misc/nil2.pcf.gz
/usr/share/fonts/X11/misc/clB8x10.pcf.gz
/usr/share/fonts/X11/misc/7x14-ISO8859-16.pcf.gz
/usr/share/fonts/X11/misc/clB6x10.pcf.gz
/usr/share/fonts/X11/misc/clR8x10.pcf.gz
/usr/share/fonts/X11/misc/clI8x8.pcf.gz
/usr/share/fonts/X11/misc/cursor.pcf.gz
/usr/share/fonts/X11/misc/8x13.pcf.gz
/usr/share/fonts/X11/misc/7x14-ISO8859-11.pcf.gz
/usr/share/fonts/X11/misc/clR6x13.pcf.gz
/usr/share/fonts/X11/misc/olgl12.pcf.gz
/usr/share/fonts/X11/misc/4x6-ISO8859-16.pcf.gz
/usr/share/fonts/X11/misc/clR6x10.pcf.gz
/usr/share/fonts/X11/misc/8x16rk.pcf.gz
/usr/share/fonts/X11/misc/9x15-ISO8859-11.pcf.gz
/usr/share/fonts/X11/misc/6x13O-ISO8859-16.pcf.gz
/usr/share/fonts/X11/misc/7x13O.pcf.gz
/usr/share/fonts/X11/misc/clR6x12-ISO8859-5.pcf.gz
/usr/share/fonts/X11/misc/7x14.pcf.gz
/usr/share/fonts/X11/misc/clR6x12-KOI8-R.pcf.gz
/usr/share/fonts/X11/misc/hanglm16.pcf.gz
/usr/share/fonts/X11/misc/6x13B-ISO8859-1.pcf.gz
/usr/share/fonts/X11/misc/clR6x12-ISO8859-3.pcf.gz
/usr/share/fonts/X11/misc/8x13O.pcf.gz
/usr/share/fonts/X11/misc/4x6-ISO8859-8.pcf.gz
/usr/share/fonts/X11/misc/gb16fs.pcf.gz
/usr/share/fonts/X11/misc/jiskan24.pcf.gz
/usr/share/fonts/X11/misc/7x13B-ISO8859-1.pcf.gz
/usr/share/fonts/X11/misc/deccurs.pcf.gz
/usr/share/fonts/X11/misc/clB8x16.pcf.gz
/usr/share/fonts/X11/misc/6x9.pcf.gz
/usr/share/fonts/X11/misc/8x13O-ISO8859-16.pcf.gz
/usr/share/fonts/X11/misc/arabic24.pcf.gz
/usr/share/fonts/X11/misc/clR6x12-ISO8859-4.pcf.gz
/usr/share/fonts/X11/misc/7x13B-ISO8859-11.pcf.gz
/usr/share/fonts/X11/misc/hanglm24.pcf.gz
/usr/share/fonts/X11/misc/9x15B.pcf.gz
/usr/share/fonts/X11/misc/clR6x12-ISO8859-9.pcf.gz
/usr/share/fonts/X11/misc/8x13B.pcf.gz
/usr/share/fonts/X11/misc/clR6x8.pcf.gz
/usr/share/fonts/X11/misc/clR6x12-ISO8859-13.pcf.gz
/usr/share/fonts/X11/misc/cu-lig12.pcf.gz
/usr/share/fonts/X11/misc/gb24st.pcf.gz
/usr/share/fonts/X11/misc/clR5x10.pcf.gz
/usr/share/fonts/X11/misc/7x14B-ISO8859-1.pcf.gz
/usr/share/fonts/X11/misc/cu-devnag12.pcf.gz
/usr/share/fonts/X11/misc/7x14B.pcf.gz
/usr/share/fonts/X11/misc/9x15B-ISO8859-11.pcf.gz
/usr/share/fonts/X11/misc/10x20-ISO8859-16.pcf.gz
/usr/share/fonts/X11/misc/6x13B-ISO8859-16.pcf.gz
/usr/share/fonts/X11/misc/clR9x15.pcf.gz
/usr/share/fonts/X11/misc/9x18.pcf.gz
/usr/share/fonts/X11/misc/8x13B-ISO8859-1.pcf.gz
/usr/share/fonts/X11/misc/clR6x12-ISO8859-14.pcf.gz
/usr/share/fonts/X11/misc/9x18-ISO8859-1.pcf.gz
/usr/share/fonts/X11/misc/7x13O-ISO8859-16.pcf.gz
/usr/share/fonts/X11/misc/clR6x6.pcf.gz
/usr/share/fonts/X11/misc/cu-alt12.pcf.gz
/usr/share/fonts/X11/misc/5x8-ISO8859-1.pcf.gz
/usr/share/fonts/X11/misc/9x15B-ISO8859-1.pcf.gz
/usr/share/fonts/X11/misc/9x18B.pcf.gz
/usr/share/fonts/X11/misc/6x10.pcf.gz
/usr/share/fonts/X11/misc/clB8x14.pcf.gz
/usr/share/fonts/X11/misc/olcursor.pcf.gz
/usr/share/fonts/X11/misc/clR8x12.pcf.gz

/usr/share/fonts/X11/misc/clI6x12.pcf.gz
/usr/share/fonts/X11/misc/10x20.pcf.gz
/usr/share/fonts/X11/misc/6x13-ISO8859-16.pcf.gz
/usr/share/fonts/X11/misc/6x13-ISO8859-1.pcf.gz
/usr/share/fonts/X11/misc/7x13.pcf.gz
/usr/share/fonts/X11/misc/7x13B.pcf.gz
/usr/share/fonts/X11/misc/4x6-ISO8859-5.pcf.gz
/usr/share/fonts/X11/misc/9x18B-ISO8859-16.pcf.gz
/usr/share/fonts/X11/misc/cu-pua12.pcf.gz
/usr/share/fonts/X11/misc/9x18-ISO8859-16.pcf.gz
/usr/share/fonts/X11/misc/clR8x14.pcf.gz
/usr/share/fonts/X11/misc/cu-arabic12.pcf.gz
/usr/share/fonts/X11/encodings
/usr/share/fonts/X11/encodings/encodings.dir
/usr/share/fonts/X11/encodings/iso8859-11.enc.gz
/usr/share/fonts/X11/TTF
/usr/share/fonts/X11/TTF/CO1251B.TTF
/usr/share/fonts/X11/TTF/CO1251N.TTF
/usr/share/fonts/X11/TTF/UN1251B.TTF
/usr/share/fonts/X11/TTF/UN1251N.TTF
/usr/share/fonts/X11/TTF/arial1250.ttf
/usr/share/fonts/X11/TTF/fonts.dir
/usr/share/fonts/X11/TTF/xserce.ttf
Markus Lausberg
A: 

i write a swing test where i select every available Font i can use in Java.

Font[] fonts = GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts();

Whith these fonts i can write umlauts to a jpanel, when i set the font of the jpanel the the given ones. They are ALL displayed correctly.

I read in a file which was created on another pc i think. I have to ask to get sure where this file come from. The String i get from the tcp connection can displayed correctly. The string i read from the file is the one i can not display. Thanks for you answers. I will check if the file has the wrong format.

Markus Lausberg