arabic numbers

270 byte By ahmadzamani at 2007-9-30 7:27:10
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....,

resourcebundle performance question

296 byte By mehmetmirat at 2007-9-30 7:37:35
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 ?

problems in J2EE1.4 Tutorial bookstore5

242 byte By simonhm_tw at 2007-9-30 7:38:28
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?

special (Polish) characters

2205 byte By ddelange1 at 2007-9-30 7:44:08
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 ...

New to Java and need help with error message!

8364 byte By supreme_good at 2007-9-30 8:18:31
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 ...

From key to character

352 byte By fitzgunnar at 2007-9-30 8:38:24
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 ...

locale and 24 hour timeformat

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.

Yen symbol using standard fonts.

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 ...

Bug with UTF-16 no reply

4946 byte By paultaylor at 2007-9-30 9:01:47
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 ...

Strange: -Dfile.encoding=UTF-8 depends on locale!

1115 byte By RuAndSpike at 2007-9-30 9:03:09
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 ...

socket encoding problem

1743 byte By zhebincong at 2007-9-30 9:05:10
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 ...

Convert from Unicode back to UTF8 ?

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" ...

Special Characters (German)

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 ...

JSTL: Currencies in other Locale than selected Bundle

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 ...

Preventing illegal UTF-8 characters...

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 ...

Reading UTF-16 files

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 ...

use properties to get character in file but some char could not be decode

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 cannot display unicode

460 byte By Makalandana at 2007-9-30 9:30:33
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 ...

getAvailableLocales and getISOCountries

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 ...

Altering txt files from another language.

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 ...

Can't set System file.encoding property in Russian locale

914 byte By RuAndSpike at 2007-9-30 9:46:46
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 ...

Fetch Chinese chars from Sybase using JDBC

1297 byte By kpsriramkp at 2007-9-30 9:48:00
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 to convert html entity code to utf-8 and vice versa?

82 byte By muhiyaddin at 2007-9-30 9:57:02
How can one convert html entity code to utf-8 and vice versa?

LF and Cp500

1100 byte By OliverNautsch at 2007-9-30 9:58:49
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 ...

Multiple Input Scripts

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 ...

Using ResourceBundle ...

511 byte By CamiloRocha at 2007-9-30 10:01:48
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 ...

displaying Greek in JTextPane

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.

File Encoding problem when using Corba

980 byte By kenfort2000 at 2007-9-30 10:05:11
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 ...

Bug with Locale.setDefault() ?

2084 byte By leon_moffitt at 2007-9-30 10:33:29
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" ...

Replacing word in a text file...in java

253 byte By daffodile at 2007-9-30 10:49:59
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

Cannot Find Bundle for Base Name

859 byte By Natalie999 at 2007-9-30 10:52:02
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);..........................}} ...

newbie here, urgent help needed fast! newline on text area.

466 byte By garrett_naylor at 2007-9-30 10:52:05
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 ...

i18n web apps

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 ...

Replacing chars

1300 byte By hans_peter at 2007-9-30 10:53:20
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 ...

File name Encoding

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 ...

Unicode Character for D with a bar under it

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?

setLocale and Applet

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 ...

Confused by NumberFormat

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 ...

repeating values in properties file

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 ...

chinese texts in Java

576 byte By ThomasAkerblom at 2007-9-30 11:13:54
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", ...

Web.xml and properties file

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 = ...

Trouble Displaying Chinese Chars from Database.

595 byte By reynoldmedes at 2007-9-30 11:21:29
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 ...

Problem retreiving unicode char.

366 byte By reynoldmedes at 2007-9-30 11:27:21
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 ...

Best way to convert a binary Data into a String?

1419 byte By linuxhippy at 2007-9-30 11:29:19
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 ...

Difference between windows sorting and Java collation sorting

688 byte By roopak123 at 2007-9-30 11:30:15
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 ...

Servlet request dont encode scandics

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 ...

System.out console output CP1252/CP850

1489 byte By jlewis@jmasl.co.uk at 2007-9-30 11:36:59
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 ...

How to check for consecutive dates?

786 byte By jallatryne at 2007-9-30 11:41:39
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 ...

Runtime.exec() with language specific chars (umlauts)

1953 byte By KarstenAedtner at 2007-9-30 11:42:58
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 ...

japanese character are broken when i store information to output file

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 ...