Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

lug-bg: Need help: Linux, Java & BG problem


  • Subject: lug-bg: Need help: Linux, Java & BG problem
  • From: yth@xxxxxxxxxxxx (Emilian Abadjiev)
  • Date: Wed, 22 Jan 2003 11:47:01 +0200


Zdrawejte,

Ot izwestno wreme se opitwam da sywmenstia: Linux, Java & BG.  Jelanieto 
mi e da naprawia ot Madrake 8.2/9.0 (a i drugi Linux-i) workstation, na 
koito da mogat da se izpolzwat wyprosinte tehnologii bezproblemno. Za 
syjalenie w Jave-6kite prilojenie kirilicata w title bar-a izliza, kato 
"??????".

Towa koeto sese6tam, 4e e wajno e title bar-ite se izobraziawat/risuwat 
ot host operacionnata sistema - w slu4aia Mandrake-to. O4ewidno ima 
niakakwo razminawane w encodirowkite na Windows Manager i/ili XFree 
kakto i tezi na Java-ta. Predpolagam, 4e ako ima razbera powe4e za 
encoding-a w title bar-a pod Linux, 6te si re6a i problema. Sy6tiat 
problem se nabludawa i pod Windows ako "Default Locale" ne e Bulgarian.

Prikrepil sym edno Java Frame-4e koeto ilustrira problema w dybo4ina. Ot 
primera se wijda, 4e w title bar-a na prozoreca se poiawiawat "????", do 
kyto w content-a na prozoreca se wijda iasno, 4e cyrilicata se izpiswa 
korektno.

Nadiawam se, 4e bihte mogli da mi pomognete da si re6a problema ili pone 
da me upytite kym podhodia6tite documenti ili hora. Predwaritelno wi 
blagodaria za otdelennoto wreme.

Pozdrawi,
Emilian Abadjiev

<HR>
<UL>
<LI>application/octet-stream \\\\\\\\\ \\\\: TestFrame.class
</UL>




import javax.swing.JFrame;
import javax.swing.JLabel;

public class TestFrame {

        static String title = "\u0410\u0411\u0412\u0413\u0414";

        public static void main(String[] args) throws Exception {
                System.out.println(title.getBytes());
                
                JFrame frame = new JFrame();
                frame.setTitle(title);
                frame.setSize(300, 100);
                JLabel label = new JLabel(title);
                frame.getContentPane().add(label);
                frame.show();
        }

}
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================


 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.