Using XML Files for Message Bundles

186 byte By larbra at 2007-9-27 1:38:22
Hi There,does anybody knows if there is an easy way to use xml files instead of property files for the strings stored in MessageBundles (Locale)? Cheers Lars

UTF-8 to Native language

646 byte By dexterchua32 at 2007-9-27 1:48:43
Hi,Good Day.I am working on a project which require data transformation from native language to UTF-8 and vice-versea.The scenario goes like this:A person will enter the data on a web page in Native language (e.g Traditional chinese or Big 5)The data entered is stored in a database where data ...

how do I change EVERY components text

600 byte By deanhiller at 2007-9-27 1:50:39
Just wondering how people are solving the problem of the user changing the language of an application through a Menu. I have only come up with 31. dispose window and recreate it again2. require user to restart application3. keep track of all Textual component and call setText on all of ...

WindowLookAndFeel can't display Chinese characters?

397 byte By adevel at 2007-9-27 1:54:55
Now I'm trying to build a nls support application. When I used MetalLookAndFeel as the UIManager, Everything all right and I can see the Chinese characters under Chinese location. But when I change the UIManager to WindowLookAndFeel or other customizing UIManager, The Chinese characters become ...

Showing Japanese characters on frame title

324 byte By v__singh at 2007-9-27 2:01:55
Hi,I have a frame, which I have successfully internationalized. When I displayin Italian all the text is changed successfully but when I change to Japanesethe title bar of the frame shows "?". Can someone please help me out with this? Thanks in advance.regards-Vikramn ...

Changing the default char encoding of the current JVM ?!

153 byte By goguest at 2007-9-27 2:05:00
Is there any way that could be used to alter the default character encoding of the Java Virtual Machine at the start of a Java application?

new feature:wanted? Sun wants to know

2384 byte By deanhiller at 2007-9-27 2:05:09
I posted an RFE on suns site and they want to know how much interest there would be in the feature. I have to feed this topic back to them so they can monitor it.The basic summary is to allow developers to call a new method instead of setText such assetBundleAndKey(String resourceBundleName, ...

ResurceBundle and Encoding *.*

138 byte By goguest at 2007-9-27 2:08:54
Any more suggestions to the topic from the link below: http://forum.java.sun.com/thread.jsp?forum=31&thread=212238

Help: Localization to Chinese (UTF-8) w/ PropertyResourceBundle

1896 byte By dito199 at 2007-9-27 2:17:23
Hi all,I am facing difficuties porting my webapp to Chinese. Read through the forum, websites etc. Lots of tips and tricks have been applied but to no avail. Hopefully, someone can help pointed out where I have done wrong.Environment: Tomcat 4.0.3. J2SDK1.4.0, IE5.0, Win2K English.1) Created a ...

Korean Fonts from inside JBuilder fine, outside not?

968 byte By GrantAppleyard at 2007-9-27 2:21:19
Hi guys, thanks for taking a look at my problem.I have an applet that builds and runs successfully within JBuilder. I can chooseeither Korean or English and, via a C++ server, load the correct resourcestrings from a given unicode text file and display them correctly. ( I've previously loaded ...

Plz tell me diff. bet. JDK1.3(SUN) and JDK(IBM) for unicode programing.

505 byte By shahbaz_17 at 2007-9-27 2:25:57
i wrote a programe using runtime environment of JDK(IBM) integrated with Visual Studio 4.0.this program is developed for Urdu. it works well while testing with JDK(IBM) .i just used Urdu Fonts.Nothing special settings. But when i tried to test it with JDK1.3 (Sun). Most characters were not ...

Foreign Language Characters not displaying properly in jsp page

509 byte By snigbor at 2007-9-27 2:42:35
Hi.I'm working on a site that has several jsp pages translated into several languages. We have a country drop down list that is populated from entries in an Oracle 8.1.6 database. The translations in the Oracle database are correct (ie Afeganisto for Brasilian) but when it gets displayed on ...

How to add font programatically to the logical font?

569 byte By noelkee at 2007-9-27 2:44:14
Can anyone tell me how to programatically add a physical font into a logical font (Serif, SansSerif, Monospaced, Dialog, and DialogInput) without having to amend the font.propeties file? I'm developing an application on Swing which needs to support internationalization and it feels pretty ...

JSP display problem with UTF-8 encoding

675 byte By zoezoo at 2007-9-27 2:44:55
Hi, I'm now writing JSP in order to input English, Traditional Chinese and Simplifed Chinese in the same form of the page. I've set the encoding as below: <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> When, I get the user input in the ...

hindi support

27 byte By nvjkumar at 2007-9-27 2:57:07
Hindi support

Getting start

260 byte By johna997 at 2007-9-27 2:59:18
I want to make a program that supports serveral different languages. And, I never done it before and don't know where to start. Would you please let me know where I get find information? Where I should start?Thanks for your inputs.

UTF8, UTF-16 & Cloudscape

1550 byte By vinng at 2007-9-27 3:12:08
Hi everyone,I have a problem when I'm trying to store and retrieve Big5 chars into Cloudscape (which claims to support Unicode just the Java does). The following is the steps:1. Prepare my Big5 chars2. Run native2ascii -encoding UTF-16 (UTF8 gives MalformedInputException)3. Running ...

Convert to GMT string

297 byte By contact_alexei at 2007-9-27 3:19:42
Hi!SimpleDateFormat date = new SimpleDateFormat("MMM dd yyyy HH:mm:ss z");System.out.println(date.format(new Date()));The result is:Apr 16 2002 15:39:26 EESTBut I want to getApr 16 2002 15:39:26 GMT+02:00What I can do?Thank you

Show time in current time format

366 byte By contact_alexei at 2007-9-27 3:26:17
Hi!jdk1.3windows2000I want to show time in current time formate.g if I set in Windows (Regional Settings->Time) time format to 12 h format , then I want java show me time in this formatif I set in Windows time to 24 h. format, then I want java show me time in 24 hours format.What I can ...

Workaround for URLEncoder(String s, String enc)

642 byte By masakoonishi at 2007-9-27 3:31:33
Does anyone know a workaround of URLEncoder(String s, String enc)?I've got an applet (jdk1.1.8) which invokes JavaScript which does a new doGet.I can see the String s has the correct hex code, until URLEncoder(String s) messes it up by using the default encoding. Since I cannot use ...

Store UTF-8 in Database and Display in JSP(URGENT)

1408 byte By kammau at 2007-9-27 3:33:55
Hi all,I am developing a software with unicode support, but I am in trouble with it.The System configuration is:OS: Windows2000 (English)Database: Oracle8i 8.1.7.0.1 (NLS_LANG = .UTF8)Application Server: Bea WebLogic Server 6.1My problem is:I have 3 JSP.The first one is a form for data ...

get installed languages on PC

311 byte By di_do1979 at 2007-9-27 3:34:55
Hello everybody!Could somebody tell me how could i understand which languages are installed on my PC for example i'm working with Windows and i have English and Deutch installed.How could i understand thet they are installed with Java programming languageThanks in advance!!! ...

How to URLEncode a UTF-8 Stream? Getting UTF back to the server.

909 byte By robadmin at 2007-9-27 3:38:02
Hi all,I've been banging my head with this problem for a while now.I'm using Xerces 1.4.4 to serialize a DOM into an encoded UTF-8 stream.I want to pass this stream out to a URLConenction, to POST it back to a webserver.My problem is how do I apply the required URLEncoding to the streamto ...

need conversion from UCS2 to utf-8

891 byte By shenoymohan at 2007-9-27 3:56:06
1. I have data in MS SQL server table in arabic in UCS2 format , need to transferr these records to ORACLE 8i table ( of same table structure) in utf-8 format. Friends , is there any tool available to do this.2. I have above one lakh records of data in oracle 8i in cp-1252 format having arabic ...

Relatively simple question- I'm a bit new at this

309 byte By iyavor at 2007-9-27 4:03:00
Hello folks I have a Hebrew text in a txt file that I need to transfer to another empty txt file. My question is how do I know which encoding this Hebrew is in? What must I use in order to properly work with Hebrew in my OutputStream and InputStream? Many thanks.Ilan ...

DateFormat timestamp masks

807 byte By jeffsykes at 2007-9-27 4:04:40
I am writing a date generating routine based on the default DateFormat timestamp masks/time pattern Strings. This cycles through different Locales, and gives you the mask for each Locale for short, medium, long, and full format. For an API to an external script, I will need to hash the ...

using dispatchInputMethodEvent() for "alt", "ctrl", and "Enter"

536 byte By badepr1 at 2007-9-27 4:13:00
Hi,I am trying to build an InputMethod to produce a virtual keyboard for a touchscreen.It works fine for most characters. However, I can't seem to figure out whatto do about "alt", "ctrl" , and "Enter".For "Enter", I tried to dispatch a linefeed and carriage return but was unsuccessful in ...

EUC_JP to UTF8 covnersion problem when char seq exceed 2bytes

944 byte By yghu at 2007-9-27 4:15:16
I am having trouble to convert some Japanese characters between EUC_JP and UTF8 using the following popular code. This piece of code works perfect for most situations for many different encoding conversions, For examlpe encods="EUC_JP" and encodt="UTF8";srcbuffer = new BufferedReader(new ...

Pls help - Displaying Simplified Chinese characters

551 byte By littlefish628 at 2007-9-27 4:15:31
Hi all,I am using Servlet to generate HTML.When I use setContentType="charset=big5" and out.println(" . . . ."); with Big-5 Traditional Chinese characters, everything is fine.However, when I use setContentType="charset=gb2312" and out.println(" . . . ."); with GB2312 Simplified Chinese ...

How to change T.chinese to S.chinese?

76 byte By shix at 2007-9-27 4:16:27
How to change T.chinese to S.chinese?Thanks in advance!

native2ascii

209 byte By mits at 2007-9-27 4:21:55
hi,Can I use native2ascii for files which are not properties file for e.g xml configurations.or any other files.has anyone tried that. ThanksRajesh Mittal

Using setCharacterEncoding of HTTP request

1751 byte By souravm00 at 2007-9-27 4:26:17
Hi All, I've two JSPs running in IIS web server in Windows 2000 advanced server using ServletExec 4.1. The first JSP is test1.jsp which has code - <% response.setContentType("text/html; charset=UTF-8"); %> <html> <head> <title>Input File</title> </head> ...

How display chinese characters?

1865 byte By ansonho at 2007-9-27 4:26:34
Hi all,I want to display chinese characters in JTextPane/JTextField. I code a small program to try but can't get the correct result. The following is my program. import javax.swing.*;import java.util.*;import java.io.*;import java.awt.*;public class TestBig5 extends JFrame {public TestBig5() ...

Character Sets and Encoding Choices..

719 byte By tuns_99 at 2007-9-27 4:30:37
I am in the process of building a 3-tier JSP-Servlets based application with potential international users (including CJK). And, I am just learning about Internationalization.I have been reading so much about Character Sets and Encoding Methods and my question at this point is : Can I stick to ...

how java handles package/class names

1105 byte By scott_pennell at 2007-9-27 4:38:42
I am developing a strategy for internationalizing our company's middle-ware product. While I have no problem with the GUI's, exceptions, log files etc, I have no concept of how things like classpaths and packages can be specified in an asian language.For instance, if I have configuration ...

How to display unicode values in file to corresponding characters

699 byte By martinsunder at 2007-9-27 4:41:47
Hello Java-ians !Could you please calrify my doubt ! I am able to generate unicode values for arbic, russian characters. I did it by generating a UTF-8 format file and I used native2ascii tool to generate unicode values. No I am unable to dispaly the characters. I read the file using FileReader ...

Charset in SDK 1.4

577 byte By lklam at 2007-9-27 4:44:23
In SDK1.4, I am able to create a UTF8 charset object by the following:Charset.forName("UTF8")However, I would also like to create other charsets like BIG5, GBK, SJIS, etc.I get a java.nio.charset.UnsupportedCharsetException when I use Charset.forName("Big5") / Charset.forName("GBK") / ...

Making java to press ALT+SHIFT

511 byte By moti-p at 2007-9-27 4:45:05
Hi,I have a form which has both English and Hebrew text fields in it.I want that when an English field will get focus (using focus listener), the input locale (the little blue square in the task bar) will change to "EN", and when a Hebrew field gets the focus, the input locale will change to ...

How to get the encoding of a byte array (or ByteBuffer)?

220 byte By serkanca at 2007-9-27 4:48:07
Hello;I have a byte array which may be encoded with any kind of encoding and I want to determine which encoding was used to encode this byte array. Does anyone know how to do this?Thanks in advance..

Running City Input Method on Linux

537 byte By NguyenQa at 2007-9-27 4:51:40
I have been able to run the City IM example ( http://java.sun.com/j2se/1.4/docs/guide/imf/spi-tutorial.html) on Windows and Solaris, but on Linux, there's no "Select Input Method" menu item on the System menu. In Sun's docs ( http://java.sun.com/j2se/1.4/docs/guide/imf/spec.html) under ...

Chinese not displaying, unless encoding is set explicitly in the browser ?

800 byte By userid74a at 2007-9-27 5:04:15
Hi,Our application is working fine at my work place, end user is able to see our application either in english/chinese/malay based on his laguage choice. But in some client place chinese is not being displayed, unless they set encoding to GB2312(Simplified Chinese) explicitly in the ...

Arbization support through java

239 byte By lkomfa at 2007-9-27 5:12:26
Hi Guysi facing the problem in arbization. how give the support arbization through java suppose when i insert the textfield not show in english must show in arabii am eagerly waiting to your responsemeraj

contentType in servlets

732 byte By yrhduahcmarruhka at 2007-9-27 5:15:16
I have a servlet which changes the encoding of a text String to ISO-8859-7The res.setContentType() has been set to ISO-8859-7The encoding is changed as followsString param = request.getParameter("parameter1");byte[] rawVal = param.getBytes("UTF-8")//create new string again.param = new ...

Japanese text display problems in applet using plugin

1286 byte By mevangelistoa at 2007-9-27 5:23:52
Hi,We've been beating our heads against the wall on this one for quite some time, so any help would be greatly appreciated.Our product uses a third party applet (Kavachart from Visual Engineering) to display graphical statistics from our database. We are currently localizing our product to ...

java.util.text.SimpleDateFormat.parse strange behavior

797 byte By paolo_dentia at 2007-9-27 5:25:50
Wow !if I parse "10/14/2002" I get "0/2/2003", that is, the month 14 is considered 12 (december) + 2 additional months and therefore february in the next year!!any idea ?Paolo Denti=============================public class Test {public static void main(String[] args) {java.util.Date testDate = ...

Problems displaying foreign text

398 byte By shockerkida at 2007-9-27 5:30:08
Hi,I have a swing application implementing a virtual keyboard with foreign text. However, when i try to display the foreign text(with keyboard clicks)onto a JTextArea, there are only ? printing instead. I don't have an input method yet. Is having an input method the only solution. Is that the ...

UTF-8 encoded character

263 byte By sarahmma at 2007-9-27 5:35:30
Hi there,I need to read data from xml file which encoded Japaneses characters in UTF-8. How can I read these UTF-8 encoded characters and displayed them correctly in my swing GUI in Japanese? Anybody got any idea? Thanks much in advance!Sarah

Parsing issues SimpleDateFormat - Converting yyyyMMddHHmmssZ into date

1009 byte By lgupta1a at 2007-9-27 5:36:49
I am trying to convert a string of the form, 20020202000000Z into a Date object. I am using SimpleDateFormat object and specifying a pattern of "yyyyMMddHHmmssZ". But when I try to parse the string using this pattern, I am getting NULL.Here is the code:-import java.util.*;import ...

DateFormatSymbols question

377 byte By godhaja at 2007-9-27 5:41:52
I am writing following code -import java.text.*;DateFormatSymbols dfs = new DateFormatSymbols(new Locale("en", "US"));System.out.println(dfs.getMonths());It prints 13 as the output, which I think is weird.If I go through the months array returned, it nicely prints 12 months one by one.Can ...

.properties and jar file

569 byte By jfmarlowa at 2007-9-27 5:52:15
Anyone, Is there a way to separate my .properties files from the jar. Everytime we want to make a simple text change we need to redeploy a new jar. I've tried taking the .properties files out of the jar and placing them in the class path, but I get this:Can't find resource for base name ...