|
Re: lug-bg: Need help: Linux, Java & BG problem
- Subject: Re: lug-bg: Need help: Linux, Java & BG problem
- From: yth@xxxxxxxxxxxx (Emilian Abadjiev)
- Date: Wed, 22 Jan 2003 16:04:41 +0200
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<head>
<meta http-equiv="Content-Type"
content="text/html;charset=windows-1251">
<title></title>
</head>
<body>
Dori da inicializiraneto na String-a ot Unicode na CP1251, to pri
kompilirane Java-ta 6te syzdade edin i sy6ti rezultaten class tyj kato
wytre6no si pazi String-owete w UCS-2.
Kak moga da smenia encoding-a w titlebar-a?
Kliment Ognianov wrote:
<blockquote type="cite" cite="mid3E2E880C.4050202@xxxxxxxxxxx">
<title></title>
Emilian Abadjiev wrote:
<blockquote type="cite" cite="mid3E2E6895.2040506@xxxxxxxxxxxx">Zdrawejte,
.............
<pre wrap="">
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();
}
}
</blockquote>
stringa ti e v Unicode, a ako na window title font-a
si dal cp1251 nqma smisul da se 4udish zashto dava ??? ... zameni \u...
s kirilski bukvi i vij kakuv e rezultata
<div class="moz-signature">--
The Power to Serve!
.....................................
: Kliment Ognianov :
: Network Administrator & Developer :
: BulInfo Networks Department :
:...................................:
: <a class="moz-txt-link-freetext" href="http://www.bulinfo.net/">http://www.bulinfo.net/</a> :
:...................................:
: +(359)-2-9699165,+(359)-88-670051 :
: ICQ #16864572, #64866894 :
:...................................:
</div>
</blockquote>
</body>
============================================================================
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
============================================================================
|
|
|