hello!please help me .i work on the program that use arabic language.i want to use numbers in arabic not in english.i can convert letters to arabic but no in numbers.how i can convert numbers to arabic.thanks....,
Hi,We are planning on using ResourceBundles for internationalization but what worries me is, there will be about 1500 keys for each language (english, french, german, italian and spanish at first). Is it a good idea or should we look for other alternatives, any suggestions ?
Hi all,After I ran http://localhost:8080/bookstore5/bookstore, I got lots of '?' appreciated for any idea!! Example:?What?Web Components for Web Developers, ?Talk??Start?
I use XP Pro sp 1, but the same problem occurs in Poland on different machines with different configs.The application is a terminal emulation application(applet).It concerns an awt.Panel component that listens to keyed input.Usually (using the Microsoft VM) a person that activates his Polish ...
I have just installed the oracle jdbc driver and am now getting the following error message when trying to use the jbdc driver instead of the jdbc:odbc wrap driver...See com.borland.dx.dataset.DataSetException error code: BASE+47com.borland.dx.dataset.DataSetException: Chain of 2 or more ...
Receiving a keypress from the user (KeyEvent), how can I find out wich character that represents *in the current locale and keyboard mapping*? KeyEvent.getKeyText() gives me the name of the key using the american layout, but that is not good enough.I know I can edit the awt.properties file, but ...
169 byte By
PaulJH at 2007-9-30 8:43:23
i'm trying to find a way to determine if a given locale uses a 24 hour timeformat (military style for instance 10:00pm is 22:00). any ideas?thanks.
1427 byte By
sg at 2007-9-30 8:50:20
I am using the 'Dialog' font with Sun J2SDK 1.4.2 which according to the 'font.properties' file in jre/lib is mapped to the Arial font. I'm trying to format currency values so that they display the yen symbol but all I get is a square box. I running on Windows XP with my operating system ...
I raised this bug on April 8th, Sun sent me an email saying it would take 3 weeks to to get back and give a bug id if it was a valid bug. I havent had a reply either way but seems likes theres a bug regarding BOM encoding, anyone else run into problems with this ?dateCreated: Thu Apr 08 ...
Hello!I noticed that ByteArrayOutputStream.getEncoding() method returns different answers for different locales with a java parameter ?Dfile.encoding=UTF-8.This is my test code:...public static void main(String[] args) {String encoding = new OutputStreamWriter(new ...
helloi am now writing a program to BE connected by a bw4.2 application by using socket,it means that my program open the server port,the bw call my socket and send me a message that is XML format,the socket component of bw is configured to use the "utf-16le",my program run on a chinese version ...
732 byte By
neeleok at 2007-9-30 9:05:30
Hello...I am storing Japanese input as Unicode which appear as below\u30ef\u30bf\u30b7\u30ef \u308f\u305f\u3057 Is this a good way to store multilanguage input into Oracle Database?Now i having an issue, that is while retrieving from Database the unicode as aboveit is unable to get "encoding" ...
649 byte By
mnikhil at 2007-9-30 9:20:38
Hi,I am trying to read property files (having Germancharacters) using resource bundle. The files has strings with special characters (not in the form of unicode escape sequence like \u00fc). I am using the following codeResourceBundle rb = ResourceBundle.getBundle("xyz",new ...
783 byte By
at 2007-9-30 9:23:24
The user can select a language on web site. Selected locale is stored in the user session and used to read text from corresponded resource bundle. Currency is diplayed as follows<jsp:useBean id="locale" scope="session"class="java.util.Locale" /><fmt:setLocale value="<%= locale ...
895 byte By
sundar_d at 2007-9-30 9:24:36
Hi,I like to know if Java has built-in mechanism to prevent illegal UTF-8 characters such as 'C0 80' that can be present in the input stream, and a string is created using following API:public String(byte[] bytes, int offset, int length, String enc).Sites such as the following tells about ...
5347 byte By
TomD24 at 2007-9-30 9:26:21
I originally posted this uner the java programming forum, then realized it'd probably be better here....I have a UTF-16LE encoded file. I want to read this file a line at a time. To do this I have written the following class:*****************************************************import ...
1509 byte By
okok1223 at 2007-9-30 9:30:27
i use properties class to get a file with Big5 character inside the file, but some character could not be display properly..... sample code:import java.io.*;import java.util.*;public class Frankie {public static void main(String[] arg) {try {Properties p = new Properties();p.load(new ...
I am new to java programming and I have a sample program which display a unicode characrer as belowclass checkCharacterLiterals{public void main static(String[] arguments){String testString;testString="Madura Makalandana\u2122";System.out.println(testString);}}the \u2122 for displaying the TM ...
896 byte By
1389 at 2007-9-30 9:31:22
Locale.getAvailableLocales() returns a list of all installed locales. Locale.getISOCountries() returns a list of all 2-letter country codes defined in ISO 3166, which can be used to create Locales.On my testing computer the Locale.getAvailableLocales() returns 134 locales, while ...
756 byte By
qbproger at 2007-9-30 9:33:50
I'm trying to alter a text file with a mix of japanese and english in it. I'm only trying to change the english part, but after my program runs on it, the japanese characters aren't the same. I haven't worked that might with other language encodings. I'm pretty sure that the one I'm ...
Hello, All!I have made one more test on setting -Dfile.encoding=UTF-8 in Russian locale.Here is my code:public static void main(String[] args) throws IOException { String property = System.getProperty("file.encoding"); String actual = new ...
I am trying to fetch some Chinese Characters from Sybase (NLS_LANG = utf8 ) using JDBC and display it in a JTextArea.The problem is , i am getting a different string from the one stored in the database..The Method to connect to the database ispublic com.sybase.jdbc2.jdbc.SybConnection ...
How can one convert html entity code to utf-8 and vice versa?
Hallo ,I have a problem with convertig a line feed to EBCDIC. I have the following source:String lf = "\n"; try {Writer out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream("c:\\Temp\\codepagetest_cp500.txt"),"Cp500"));out.write(lf);out.close(); } catch ...
530 byte By
JonJava2 at 2007-9-30 10:00:29
What is the best way of setting different JTextFields within the same GUI to use different input scripts automatically? Suppose you had four JTextFields and wanted the first to be for English text, the second for Hebrew, the third for Arabic and the fourth for Russian. How would you get the ...
Sorry if this question is amateur, but it has teken me long enough to solve the problem.I have the following line of code:resources = ResourceBundle.getBundle( pattern, locale );with the following contraints: resource: instance of ResourceBundle pattern: "pattern" locale: us_EN If the code ...
186 byte By
eeoam2 at 2007-9-30 10:03:38
How do I get Greek letters to display in a JTextPane? I try for examplepane.setText("\u0947"); //gammabut the character does not appear, just a funny symbol.
Hi,Hope someone can help me out with this one. I'm developing a Java applet using Corba. I noticed that Java VM on Sun/Windows uses ASCII as the default file encoding while the Corba I use does not recognize this file encoding. The only way that I know how to get around this problem is to use ...
Hi everyone, I've been developing an application that displays both english and japanese and now I am trying to package it properly so that it can run on any platform. If I set the locale at run time by stating in a scriptjava -Duser.language=ja -Duser.country=JP -cp "my jarfile" ...
hello;could anyone plz help me in writing a program in java that will replace a specific word with a specific word?Though i can read and write to a file. I need it urgently....plz help me...regardsadaffodiles@yahoo.com
I got an error message: Can't find bundle for base name locale en_USIt happened in my code:private static final String OPTION_FILE_NAME = "website_utility_ParamOptions"; public ParamOptions() {try {ResourceBundle res = ResourceBundle.getBundle(OPTION_FILE_NAME);..........................}} ...
Hey guys,Im new here and i need some help really fast.I made a program that reads from a text file and should print out everyline of it in my text area. It reads all the lines and prints each line over the last so all i see is the last line of my txt file in the text area :(. How do i make the ...
873 byte By
Sethp45 at 2007-9-30 10:53:16
Hi,My company currently works with microsoft technology (asp,vb,...) but I try to change that in order to rebuild our web app with j2ee. So I'm looking around the web to find what we'll need to do that.One thing we need is a multilingual web app. Currently we're using keywords what have ...
I have a problem with replacing chars. I want to replace the following chars <, > and 'I've implemented the following code:remove(String str) {Pattern p = Pattern.compile("[<>']");Matcher m = p.matcher(str);StringBuffer sb = new StringBuffer();boolean result = m.find();boolean ...
1404 byte By
lozsmith at 2007-9-30 10:57:32
We have a requirement from our customer for some simple content management. Basically they will get a directory on our server to place pdf files. We then read this folder at runtime and dynamically create a JavaScript tree so that users can view and select their required pdf.In terms of display ...
247 byte By
vjave at 2007-9-30 11:00:55
There's a character that I've seen called "d low macron" and "d under", and what it is is the letter D with a bar under it. I've tried looking through all unicode docs and can't find this character. Does anyone know if it exists?
560 byte By
awan4 at 2007-9-30 11:03:15
hello guys,how can i set locale from an applet? The following code does not work...Locale locale = new Locale("en", "US");Locale.setDefault(locale); // not this.setLocale(locale) either The problem is that SimpleDateFormat returns "day of week" in text e.g. tuesday, sunday etc....depending on ...
8070 byte By
komone at 2007-9-30 11:06:08
Hi,In the pursuit of trying to validate numbers that are entered in an html form input, I wrote a small prog to find out what was available in the NumberFormat and Locale info in J2SE 1.4.2public static void main(String[] args) { Locale[] locales = NumberFormat.getAvailableLocales(); for (int i ...
504 byte By
rak78 at 2007-9-30 11:07:37
Hello,I have a property file containing about more than 200+ pairs (i.e. keys=values). Some of the keys are repeating in this props file. Now, when I use getValue() method of "Property" class, it will obviously retrieve first occurrence of requested "key " and will not track other occurrences ...
Hi.I'm using JBuilder to develop a gui in java.All is in English and now I wan't to be able to do it in Chinese as well.I have created resource files for the chinese text in a dialogue box, but all I get is awkward characters.I have also tried this:Locale chLocale = new Locale("zh", ...
1142 byte By
UG3 at 2007-9-30 11:14:39
HelloI want to do a JSP aplication in varius languages. I create the files like Message_es_ES, and in my jsp write this<%@page import= "java.util.*"%><%ResourceBundle bundle=ResourceBundle.getBundle("message", new Locale("en","GB"));for (Enumeration e = ...
We are in the internationalization phase of our project.Regarding the labels and buttons there is no problem, using ResourceBundles.But when it comes to database I tried to paste chinese char via MS SQL Administrator directly to the table rows and it works fine (its datatype is varchar) , but ...
I have a database MSSQL with some fields as nvarchar. I pasted some chinese chars on it in Enterprise administrator and it works fine. but using rs.getString , results to "?" characther. I wonder whats wrong with the app. While the chinese character from resourse bundles displayed correctly the ...
Hi there!I have to write an applet which has to pass data to a jsp/webserver using the http/get method.For now I simply created a ByteArrayInputStream and after I have finished writing a created a string using the getBytes(); method.However since I changed my linux-distro I had really heavy ...
I encountered a strange problem. For certain charactersunicode charactervalue 170 178186 216248 402and other control charcters and symbols the sorting in java using Collator.getInstance for German /English language is different from Windows, if we use microsoft's runtime library and use ...
367 byte By
J_J_78 at 2007-9-30 11:33:10
When I pass a parameter value to servlet and then to database (MySQL) , scandics are not in right form: Do I need to do something in servlet to encode value before passing it to database?I have tried following:message = new String(message.getBytes("ISO-8859-1"),"UTF-8"); Is the problem servlet ...
I've been trying to write something to receive XML as 'messages' through a socket connection and, in order to see better what's being parsed, I've been writing the elements and data to System.out so I can see the values in the console window (this is Windows XP).The problem I get is that ...
HelloI am reading a timeseries file, and want to check that the dates on file are correct (consecutive). The date on file is on the format yyyymmdd, and I read it as a string, and convert this to a GregorianCalendar with: current new GregorianCalendar(yyyy, mm-1, dd). To check that this is a ...
Hello,my problem is as follows:I need to run the glimpse search engine from a java application on solaris using JRE 1.3.1 with a search pattern containing special characters.Glimpse has indexed UTF8 coded XML files that can contain text with language specific characters in different languages ...
2276 byte By
hsong3 at 2007-9-30 11:43:26
helloI am trying to merge 2 separate resource files with java program. (A.rc and B.rc)In my program, i look for certain key string from "A.rc" then subsitute entire "B.rc" for that line of string. as a result of this procedure, i have "C.rc" that contains all the values form "A.rc" and "B.rc"it ...