JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Java 技巧文件  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友    訂閱主題
reply to topicthreaded modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 在不是中文的環境下顯示中文
T55555

Java, Ruby, Haskell

版主

發文: 1026
積分: 24
於 2004-05-12 02:48 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
拿程式分享區的 (swing) 程式在不是中文的環境下 run,
看到的只有一堆"四方格子"...

It is esay to fix this problem, without changing local, modify the font.properties file
( <JAVA_HOME> / jre / lib / font.properties )

Add: the Unicode support font, like:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
dialog.0=Arial,ANSI_CHARSET
dialog.1=WingDings,SYMBOL_CHARSET
dialog.2=Symbol,SYMBOL_CHARSET
# Add one more font to support unicode ( Arial Unicode MS )
dialog.3=Arial Unicode MS,DEFAULT_CHARSET
 
dialog.bold.0=Arial Bold,ANSI_CHARSET
dialog.bold.1=WingDings,SYMBOL_CHARSET
dialog.bold.2=Symbol,SYMBOL_CHARSET
# Add one more font to support unicode ( Arial Unicode MS )
[b]dialog.bold.3=Arial Unicode MS,DEFAULT_CHARSET
[/b]
 
dialog.italic.0=Arial Italic,ANSI_CHARSET
dialog.italic.1=WingDings,SYMBOL_CHARSET
dialog.italic.2=Symbol,SYMBOL_CHARSET
# Add one more font to support unicode ( Arial Unicode MS )
[b]dialog.italic.3=Arial Unicode MS,DEFAULT_CHARSET
[/b]
  
dialog.bolditalic.0=Arial Bold Italic,ANSI_CHARSET
dialog.bolditalic.1=WingDings,SYMBOL_CHARSET
dialog.bolditalic.2=Symbol,SYMBOL_CHARSET
# Add one more font to support unicode ( Arial Unicode MS )
[b]dialog.bolditalic.3=Arial Unicode MS,DEFAULT_CHARSET
[/b]
 
...

And the beautiful Chinese characters will show up again. Smile


T55555 edited on 2004-05-12 02:50
reply to postreply to post
作者 Re:在不是中文的環境下顯示中文 [Re:T55555]
richlin





發文: 38
積分: 0
於 2004-05-28 12:22 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
如果比較混可用

java -Duser.country=TW -Duser.language=zh ......

也就是告訴java使用何種properties檔 如properties.en_US

如果你遇到有用i18n的程式,也不要用中文的話就java -Duser.country=US -Duser.language=en


reply to postreply to post
IT是服務業,不斷精進自己的實力,給客戶最好的服務,是我們的目標
我們學的邏輯與資料結構,如何建構具有彈性與擴充性的應用程式,使客戶能面對未來商業競爭與業務需求,是吾輩的責任
如何將複雜的問題分解,成可解,成最小可利用元件,組合這些元件就可達到我們所要的解
SCEA,SCJD,S
» JWorld@TW »  Java 技巧文件

reply to topicthreaded modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8