1186 byte By
raj4java at 2007-9-26 13:44:42
Hi ,I am using properties-files approach ie for each languageone properties-file.BUT I am having this problem :I have ResourseBundle's base-name as "Message"and so 2 properties files:1.Message_en_US.properties YES=YesNO=No2.Message_ja_JP.properties ( for Japanese)YES=NO=Now problem here is ...
650 byte By
cknelsen at 2007-9-26 13:55:09
Hi. We are developing a web site that supports English and French. Some of the web pages have forms where the user must enter monetary values. Since English and French monetary values use different formats, I am wondering if there's a Java API (that hasn't been deprecated or is obsolete) that ...
267 byte By
kingfist at 2007-9-26 13:58:34
I use InputStreamReader with encoding "Big5" to read a big5 text file and use OutputStreamWriter with encoding "GB2312" to output the file.But in the output file, I can see many question mark instead of GB2312 characters.How to get through this problem?
547 byte By
nagwww at 2007-9-26 14:03:11
Hi ,My aim is to see this string on the browser and the encoding must be UTF-8<%@ page import="java.io.*" %><%@ page import="java.util.*" %><%@ page import="java.net.*" %><%response.setContentType ("text/html;charset=UTF-8");out.println(" prcdemment "); %>And when i see ...
2112 byte By
qifeng at 2007-9-26 14:03:45
Hi After some testing i find that app server has some impact to JSP internationalization, but i am clear about the mechanism of app server, can some people help to explain it?The following are the testings:Case1:Environment: VisualAge for Jave 3.02 Websphere test ...
I am a new java Programmer, Could you tell me how can I convert local Datetime to RFC standards ?Thanks
353 byte By
karpati at 2007-9-26 14:28:13
You can enter any hungarian character intomy JTextField, but when you get the text fromit:JTextField jtf = new JTextField();... (input)...String a = jtf.getText();In String 'a', four of our special hungarian charactersexists as '?'.How can I deal with this problem? ...
69 byte By
joefk at 2007-9-26 14:36:58
http://www.theonion.com/onion3744/java_programmers.html
Hi guys,I am new to I18N. i want to display some unicode text using java program. But i always get "?"..any idea?public class I18N { public static void main(String[] args) throws Exception { String street = "\u65E5\u672C\u8A9E"; System.out.println(street); }}if i use unicode value equivalent to ...
Gang,My team wants to be able to deploy an executable jar file and a separate .properties file that would contain industry or country specific wording for the labels in the application (or applet). We thought it a good idea to keep the file outside the jar so customers could change labels if ...
517 byte By
eeijby at 2007-9-26 14:58:57
Hi,Trying to write an application where it is possible to change language at runtime (using JDK1.3).My own resource bundles are easy enough to reload but the problem is the UIDefaults. A JOptionPane for example will have a "Yes" and "No" button in English but when changing to another language I ...
Hi,I am trying to retrieve Japanese characters stored in a sybase database (ISO-8859-1) using Jconnect4.0, to a file and trying to display on a browser. I am also retrieving data from a file at the same time, and that display fine. The data is stored in a "SJIS" format already, so i want Java ...
344 byte By
timt51 at 2007-9-26 15:01:23
Hi!If I have several java apps, that may someday need to support japanese, etc, How would I be able to test if they fully support unicode? What are the questions I need to ask myself when checking? Any insight will be helpful as I know little about determining if I can fully support unicode... ...
Hi all, 1. My database is UTF8 2. Client is JSP 3. The charset set in JSP is UTF-8. 4. In that case will it prompt for installing font at the client side when presenting languages like japanese, korea, chinese etc., TIARSrinivasan ...
467 byte By
shika738 at 2007-9-26 15:16:04
Hi allwhen one sets out to provde internationationalization support for an app, I understand that all string constants are to be moved into a resource bundle etc., But what about strings inside classes on whose value execution depends..., but at some point must be displayed to the user...I ...
hi guys, i have attached the code which encodes/decodes any string into a URL-safe form. Thanx to Martin Drst, i18n coordinator, W3C.org./** * Provides a method to encode any string into a URL-safe * form. * Non-ASCII characters are first encoded as sequences of * two or three bytes, using the ...
Hi,I have some word like "Ungu\u00ED", which is equivalent of Ungu (the hexa equivalent ofin unicode is that \u00ED).I have to store it to the database.How can i store it as Ungu into the database.Thinking of using java code to do that, still not clear about how to do that,,,,,TIARSrinivasan ...
315 byte By
shika738 at 2007-9-26 15:20:52
For legacy code with lots and lots of strings what method is typically used to extract strings for internationalization? Am I right in thinking you couldnt simply grep for strings, it could get pretty complitcated, especially with escape characters, escaped quotes etc.,-SK ...
Greetings all, I am trying to implement a Mars time system in Java by extending java.util.Calendar. I believe I can get by with just writing computeFields and computeTime (well, and all the other abstract functions) but I'm unable to access the protected stamp field:MarsCalendar.java:93: stamp ...
i pass an input thru a utf-8 encoded html form to a jsp. when i read it using bufferedreader and when i do request.getencoding( input text) it always shows me ISO8859_1, whether the data is english or japanese or any other language. how do i get the charset (SJIS or EUCJIS etc) of a text ...
Hi,I tried the sample code given below,String input3 = "Kram<u0101bol";String input2 ="K\u0101bol";System.out.println("input2:"+input2+":");System.out.println("input3:"+input3+":");String input4 = input3.replace('<','\\');System.out.println("input4:"+input4+":");The output ...
I've done a java 1.3 application where all strings are stored in properties files. Internationalization works fine in english and in french. But when it comes to russian, there is a curious problem :- All translated windows titles (JFrame for instance) display only strange characters when they ...
I am supporting a legacy application for Sabre which maps some of the keys differently. For example, on a French keyboard the Compose key which is used to put a ^ on top of the vowel characters is to be remapped to produce a special character called a "Change Character" that has a special use ...
hi,I would like to implement two JSP pages. The first JSP is just a html form, which is used to submit unicoded chinese data to a target JSP file. The target JSP file received those data and display.<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> is added in the first ...
999 byte By
chadri at 2007-9-26 15:48:31
Guys,I'm tried execute a Java program (a HelloWorld program) and this message is show me when I execute:c:\java\cbt\samples> java FirstAppException in thread "main" java.lang.NoClassDefFoundError:Notes:1) The source code of program (file: FirstApp.java):// Curso Java 2package cbt.samples; ...
Hi GuysIs anybody aware of an equivalent of ISO 8601 that deals with Currency and Number formats?Thanks
Hi GuysI need to identify the position that a given date portion takes within a specific locale's formatting, (E.g. US dates are mm/dd/yyyy whilst UK dates are dd/mm/yyyy). I'm sure that it's got something to do with FieldPosition but I can't get any further with the docs. My basic question ...
I try to add chinese characters (GB2312) to the Access database using jsp. I can add to the database but when i try to retrieve it, it returns as pure unicode, as a result, i can't retrieve using my sql query.Another thing is when i maunally saved chinese characters into my database, it can be ...
Hi, I have a problem and it would be great if someone could help me. So, I made property file by native2ascii from chinese Big5 and I need to read unicode string from .properties file and put it in JSP output in UTF8. Everithing I done doesn't work properly (string appears like blend of ...
i'am able to send and retreive multilingual data to and from an oracle 8i db to the browser. but when i query it using SQLplus is see some corrupted data. but the data is going in UTF-8 because i tried to get the decimal values of the data inputed and then converting it back to hex and then on ...
567 byte By
safir at 2007-9-26 16:22:57
hi,I can display non-ASCII in an applet using:public void paint( Graphics g ){g.setFont( new Font( "Serif", Font.BOLD, 12 ) );g.drawString( "Hey: Serif 12 point bold: \u015E\u0130\u0131\u015F", 20, 50 );}but i can't display the same on a component (e.g. Button):public void init(){Button oneB = ...
217 byte By
venki105 at 2007-9-26 16:24:03
i need help in he Thai language text input, to Jtextfield, JtextArea and also i need to my Menus, buttons and other swing components in Thai charater with Windows installed fonts in Thai windows version.
430 byte By
ckoff at 2007-9-26 16:47:57
Is there a tool that will take a file that contains Unicode characters (in either little or big endian format), in ranges 0x0000 to 0x00ff, and convert the content into the \uxxxx format? For instance, convert the string "test" represented in Unicode into: "\u0074\u0065\u0073\u0074".I don't ...
1343 byte By
rajk at 2007-9-26 17:06:57
Hello everybody there ,As I am going for addressing localization-issuesfor my application I have one design-related question here.we have different distinct interfaces (modules) in thewhole application. Now there are 2 things in my mind :1. have one ResourceBundle for the whole application: and ...
Hi All:I am using test1.jsp to accept any CJK/latin character and display itin test2.jsp. test1.jsp uses post method and has only one text box.test2.jsp does a request.getParameter(...) to display it. The browser'sencoding is set to unicode UTF-8. But test2.jsp is not displaying thejapanese / ...
245 byte By
keithwan at 2007-9-26 17:19:16
Did any one could told me how to define the specialcharacter to font.properties likes HKSCS .Cause I got some HKSCS fonts which windows platformcould display that , but under JDK it could not beshowing !
As the language changes the accelators may not be valid for that language.Suppose In EnglishFILE = FILE = Accelator is FIn OTHERFILE = ABCD = Accelator is FThis will not work. Can anyone suggest something to make this general.Thanks,Ashish ...
452 byte By
thwu at 2007-9-26 17:37:29
righto now, I met some problems of display Chinese character with True Type fonts on Swing in HPUX. all the character are black blocks when the swing components are translated from english to Chinese. I am using JRE1.3. I moved the font.properties.zh_EUC_CN to replace the font.properties, it ...
How can I set the file.encoding in windows platform that will not be influence by the locale. For example, in the Control Panel->Regional Options the locale is set to Russianand what I get is that I use file.encoding Cp1251 even though I pass the parameter in the command ...
I have files encoded in English, Spanish, Japanese etc. I want to know which file has which encoding format while reading.Can anyone suggest.--Ashish
2079 byte By
MGoncalv at 2007-9-26 17:48:17
Hi everybody,I'm trying to read some text in Portuguese from a MS-Access database, but the special characters for Portuguese aren't correctly translated by ResultSet.getString(String).Here's my piece of code:private static void fetchEquipamentoEstabelecimento() { try {Statement stmt = ...
1540 byte By
eg_thx at 2007-9-26 17:50:31
Hi,I have problems in feeding Oracle with MS950 encoding using JDBC.Problem 1:Now my database set the NLS_LANGUAGE to be ZHT16BIG5, and set client to useOracle thin driver, and running with System Property "file.encoding" as MS950.When I insert a HK character (HKSCS) into database, the HK ...
I am using the following code to create a file with a chinese filename under win2000 in jdk1.3.1_02 but it gives me "(The filename, directory name, or volume label syntax is incorrect)". Is it possible to create a file with a filename of any languages under this setup ? Your assistance is ...
731 byte By
alonia at 2007-9-26 18:09:31
Hello all!We have a problem with the iso-10646-ucs-2 charset. When I'm trying to read something written with that charset I get an exception about Reversed byte-order mark ("Reversed byte-order mark").This is because java thing it should be encoded as big-endian, and unmarked (class ...
1219 byte By
raj2k13 at 2007-9-26 18:10:52
Hello everybody,i have few basic questions related to Compound messages in my mind and need your suggestions:1. for example , i have 10 java classes for a specific module. Each class creates one screen .for Messages-to-user my approach is something like this:Object[] testArgs = {new Long(3), ...
68 byte By
tda at 2007-9-26 18:17:13
How to know at run-time which encodings are supported?
495 byte By
raj2k13 at 2007-9-26 18:31:18
Hi everybody ,this problem is not exactly related to I18N but to Unicode( I guess).How to increment a Roman character... to make it more clear ,for creating a report i have to put I , II , III , IV ,V....and so on...., how to programatically generate them ?...as it is a dynamic generation so it ...
525 byte By
javaJuw at 2007-9-26 18:31:50
hii am trying to embed a image in a resourcebundle. searching about this topic in the net always tells me to manage it by getting the path to the image from the resourcebundle. but i have read that its possible to store the real image in a resourcebundle.now my questions are:- how can i store ...
Hello all,I am beginning using Java, I try to start japanese applications, but I got just rectangles instead of Japanese characters.I am using win2000, enabled to read and write japanese (I can use IME in Notepad, for example), browse, etc.But if I change the system default to japanese then the ...
Hello everybody,Recently I'm making some i18n for supported by me API. I was surprised that convertion to UTF-8 makes sometimes result buffer which contains more characters than I need (after termination 0 ther is meaningless chars). May be I'm wrong (pls tell me if i am so to not ask stupid ...