Any Samples?

411 byte By Satgadea at 2007-9-30 1:08:56
Hi All,My requiremnt is somthing like this. I have unicode text strings in chinese, thai and arabic in text files.Also I have font files. I have to create a java application with list control where the first column txt should be in chaines, second cloulmn text should be in thai and the third ...

Encoding

288 byte By art123456arta at 2007-9-30 1:10:49
for (char c=0; c<255; c++)System.out.println("" + c);When I run it on Windows or Redhat everything is ok but on Debian a get only first 127 chars. Next 127 characters are '?'. Why?I tried java -Dfile.encoding="UTF-8" but with no effect. I use SDK1.4.2_02.

JDK1.4.2 Problem on Windows2000 of Simplified Chinese

669 byte By 754787a at 2007-9-30 1:15:23
Hi,I am having problems compiling Java files on Windows2000 of Simplified Chinese. When I was compiling Java code, I got the following error messags:error: error reading source file: sun.io.MalformedInputExceptionerror: error reading source file: sun.io.MalformedInputExceptionerror: error ...

Insert / Update UTF-8 content to database (java standalone)

437 byte By cing_haia at 2007-9-30 1:28:05
Hi,Need help on insert / update utf-8 content to database on java stand alone application.I managed to inser / update on weblogic using setting below: <context-param><param-name>weblogic.httpd.inputCharset./*</param-name><param-value>UTF-8</param-value> ...

Locale.setDefault() doesn't pick up fonts .. workaround?

479 byte By asjfa at 2007-9-30 1:31:10
hi, I've recently tried adding a command-line option to a swing application so you can specify the locale to use. This is to avoid having to fiddle with the locale via Windows Settings->Regional Settings which is quite slow to use. The problem is that the fonts used by the jvm seem to be ...

Phone Number Internationalization formatting?

3423 byte By 6011Ridera at 2007-9-30 1:31:33
I've been working on a project to take in an unformatted phone number, recognize the international code, and then print it back out based on the ITU international phone format. I've come up with this logic code so far, which seems to work for the hard-coded values in my array, but I've been ...

BufferedReader.readLine doesn't recognize unicode line endings?

1012 byte By asjfa at 2007-9-30 1:36:53
hi, i'm not certain if this a problem with my text editor or a problem with BufferedReader, but the evidence seems to point to BufferedReader.BufferedReader is recommended for processing text files when the charset needs to be specified. The problem is that it only recognizes CR and LF line ...

urgent help..i18n

342 byte By apramodreddya at 2007-9-30 1:49:45
iam facing the following problems while using Japanese in my applicationwith jdk1.4.2_01 >>titles well shown in Japanese but the labels are with squares.-With jdk1.3.1_03 >>labels well shown but titles are with ?--Any help is greatly appreciated.thanksPramod. ...

JSTL takes care of I18N ?

379 byte By lggoundalkara at 2007-9-30 1:51:33
hi,I want to have I!8N feature in my web application which is build using JSP, Servlet and Java Beans.If I use JSTL ( JSP Standard Tag Library ) then can I handle all the implementations required for having I18N and L10N suppoort in my application?Is there any special tutorial or so available ...

Where does Java takes date formats for different locales?

616 byte By jonathantauba at 2007-9-30 1:55:54
I'm running SDK 1.4.2_02 on a Redhat 9 linux workstation.The current locale is he_il (Hebrew-Israel).I'm using a SimpleDateFormat instance to format the current date and time.The problem is that the time is displayed before the date (hh:mm d/M/yy).Whether this is the way it actually should be ...

Characters not getting translated correctly

4185 byte By masburya at 2007-9-30 1:58:47
I have written code that basically sends a URL to AltaVista's Babelfish translator, which translates the text that I send into whatever language I specify. In my case, I'm going from English to Spanish, translating the phrase "How are you?" When I get the result back, the special character of ...

font.properties

354 byte By apramodreddya at 2007-9-30 2:00:12
Hi all,Do u know how to enable my application to display japanese without changing the font.properties.ja to font.properties?FYI: without changing the font.properties.ja to font.properties i could see only the title bars correctly translated but the labels doesn't.any help in this ...

Adding a new Locale to Java

316 byte By Jagan_Baliaha at 2007-9-30 2:00:22
Hi allCan anyone tell me whether there is a lot of work involved in adding a new Locale to Java . Iam using JDK 1.3.1 which supports around 140 locales and it doesn't support any locales from India . Do the versions after 1.3.1 support any Indian locales. If you have tried this, then please ...

Chinese Characters not displayed in JChooserDialog

516 byte By drez1a at 2007-9-30 2:04:20
Can anyone tell me why some of the Chinese characters are displayed properly and others are not in a JChooserDialog? The characters in the title bar and list bar (which displays images for Recent, Desktop, My Documents, My Computer, etc) display correctly; however, the characters in the ...

reading a file with UTF-8 contents

926 byte By hupfdulea at 2007-9-30 2:10:24
Hi,I am not sure whether this is the right forum for my question. If not, please tell me.I have a problem reading a file where some characters are stored in UTF-8. An example string from the file is: "M\u00f6hrchen"But If I read this in, with a BufferedReader this becomes "M\\u00f6hrchen". Why ...

What Is the Equivalent Code If I Leave Internationalization Out

1462 byte By Natalie999a at 2007-9-30 2:15:14
I have source code for accommodating internationalization using the ResourceBundle. I do not want to use internationlization. Here is the source code:static final String OPTION_FILE_NAME = "mvnplugin_mvnforum_MVNForumConfig";static String MVNFORUM_HOME = "mvnForumHome";static {ResourceBundle ...

Multilingual Email - help needed

1304 byte By sowmiya_s@hotmail.com at 2007-9-30 2:38:08
I am working on a project that has a requirement to send emails in different languages.The email contents are in different property files and my java program has to read these files and send emails. The list of languages that has to be supported are english, european languages and far east ...

kannada input

467 byte By uttamhoode at 2007-9-30 3:08:45
hi all, i am doing a kannada speech synthesizer in 8 sem project lab. first iwant to craete a text editor whch takes input from user.for kannada there are 4 types of keyboards1. transliteration2 kgp 3inscript4 typewritercan any one tell me how to implement the above things in JAVA i dont want ...

String character conversion

1281 byte By VDries at 2007-9-30 3:17:29
Can anyone explain me why there are 5 characters in the first range of 256 that are coded back to the question mark.for (int i = 0; i < 256; i ++){byte[] bytes = new byte[1];bytes[0] = (byte) i;String temp = new String(bytes);byte[] result = temp.getBytes();if (result[0] != ...

listing different languages in its own character set

1352 byte By shift244 at 2007-9-30 3:27:53
i was thinking about this problem for sometime, and would very much appreciate help from anyone who has any ideas on how to go about doing this:PROBLEM: attempting to provide a set of options from a JComboBox which of a list of languages, each presented/displayed in thier own character set, so ...

[Convert Java Strings in NCRs format for the servlet/jsp response]

404 byte By wongkaho at 2007-9-30 3:36:55
Hello All,is there any convenient way to parse and convert thecontent of all elements in jsp in "Numeric CharacterReferences" format before it's send to the browser?for example:<html><p>(__a chinese ...

text encoding and input methode

526 byte By uttamhoode at 2007-9-30 3:41:14
hi, i made a text editor using swing.1))how can i SAVE and OPEN that text(int txt format) using encoding techinque like UTF8 etc. 2)) normaly input methods jar files are(eg indicIM.jar) copied to JAVA_HOME/jre/lib/etx folder.and input method is selected using menu.is it possible to implemnt ...

Reading from a stream that contains text in mixed encoding

2120 byte By Z.Radnai at 2007-9-30 3:47:03
I have a general question related to reading from a stream that contains mixed encoding.I will mention at the end the specific example in which I am trying to do this.The general question=================Say I have a byte-stream (i.e. some form of InputStream) which I am trying to read from.The ...

Java 1.4 Logging Problem

1016 byte By aoesterer at 2007-9-30 3:48:46
What am I doing wrong?I'm trying to log a message where the message string is defined in a resource bundle. It all works ok when I pass the code directly to the logger. But I can't get it to work when using the LogRecord class. When using the LogRecord class, the output is always the code and ...

Alistair And ST!!!!!!!!...Inserting japanese into Oracle database

786 byte By devulapallis at 2007-9-30 3:49:46
Hi,My Database charset is UTF-8 and my application is hosted on weblogic 5.1 and its default encoding is Cp1252.Now what i am doing is i take a Japanese String as input and insert that into database.While inserting i am not doing any conversion and letting the database to handle it.While ...

xml encoding

525 byte By vanalex at 2007-9-30 3:54:07
Hello everybody!I have an xml file which includes data written in greek. When i put as an encoding "utf-8" the xml file written in greek cannot be opened, but when i put "windows-1253" there is no problem. The problem is that whenever a java class modifies the xml file the encoding ...

Date in different locales

1004 byte By David1143 at 2007-9-30 4:00:18
I'm sure i've got a pretty common issue and i'm not the first one facing it but i couldn't find anything really. So here it is.My first problem is that I want to be able to display a date stored in the database, in a given locale. I've done that part and it was pretty straight forward. But ...

Detect Encoding

256 byte By hitubam at 2007-9-30 4:01:37
Hi All,My problem is how to detect encoding given an InputStream. Basically I want to make sure the InputStream has ISO-8859-1 characters. If not then I need to throw an exception.Any help appreciated.Thanks,Hitesh

How to translate native Unicode to ascii Unicode

133 byte By smeetie at 2007-9-30 4:32:26
I want to read in the user input and then store this input as ascii unicode into the database. Can anyone tell me how?!

Problem in getting japanese characters using request.getParameter()

767 byte By suneet123 at 2007-9-30 4:39:14
hi, I am trying to pass japanese characters from my html page to jsp . butwhen I am getting characrs using request.getParameter() it is displaying some ? instead of japanese chars. I am using RH7.3 and Jdk1.3.1 on Tomcat4.1.27. I have set my locale to "ja" and set the page encoding to UTF8 ...

UTF-8 in JSP

613 byte By J_J_78 at 2007-9-30 4:54:24
Hey.When I make a select statement to database in servlet, do I need to do something because some of the characters are in chinese? Then I set those parameters to bean component and JSP get values of the parameter as a response. But these chinese characters are in wrong format althought I have ...

Reading Japanese Text

382 byte By taz0789 at 2007-9-30 4:58:47
Hi,I have a standalone program that would like to read in a text file and display in the textarea. The problem is, the text file is encoded in Japanese using JIS, EUC, and SJIS. Is there a way for me to detect, upon opening the file, which decoder to use, and how can I display the Japanese ...

URGENT HELP NEEDED - JAVA FONTS

1742 byte By noor22 at 2007-9-30 5:01:40
Hi there,I was wondering if I could ask for you helpI have created a chatting program that is based in java, I created it as an applet.Everything at the moment is done, however the actual language used to chat is sign language . At the moment I have the .ttf file which includes all the sign ...

LabelBundle problems

476 byte By guntin_java at 2007-9-30 5:36:59
Hi...I have a problems withResourceBundle.getBundle:Can't find bundle for base name LabelBundle, locale deIn mys CLASSPATH contains the path where I have my classes.This my package:com.jaraujo.jabaco.i18nthis is my classpathC:\com\jaraujo\classesthe properties files ...

Problem with Greeks characters

447 byte By grigoris59100 at 2007-9-30 5:42:05
i don't know if this is the appropriate place for posting this message, but anyway here it's my problem.I have an application which connects with a database, but the data which send at the database (greek characters) trasform into the character ?.What i have to do?I use the driver connector/j ...

Please help...java compiler error

995 byte By noor22 at 2007-9-30 5:48:52
hi there,please could you help me.Firstly, the charset converter converts Unicode, or Java string encoding, to the index of the font. For font drawing, the runtime environment uses the charset converter that is the subclass of sun.io.CharToByteConverter. i need to add a new ttf font to the ...

Displaying Unicode in Sweden

858 byte By perhoc at 2007-9-30 5:57:32
Hi,I'm trying to get a JTextPane to display Unicode (e.g. Chinese) characters. I'm situated in Sweden so my cup of Java (or something) doesn't seem too happy about it ;). More specifically, I want to paste a, say, Chinese character into a JTextPane and have it displayed as one and not as a ...

java fonts urgent help

578 byte By noor22 at 2007-9-30 6:04:34
hi there,please could you helpi have built a chat program in java using applets. when users chat, instead of displaying english characters, i need it to display the characters from the ttf file that i have.therefore, when users chat to others users, it should display the ttf font characters ...

Storing user inputs in database

928 byte By Jagan_Baliah at 2007-9-30 6:16:36
Hi all Hope somebody helps me .....Iam involved in an internationalization project in my company. Till now i have undergone a lot of study for this and now iam very much clear in all the things related to i18n except the database related issues. Let me tell what is the picture I have in my ...

sun.io.CharToByte8859_1

440 byte By confusednovice at 2007-9-30 6:26:05
I'm trying to add a font to the Serif logical font set and the link here http://java.sun.com/j2se/1.3/docs/guide/intl/fontprop.htmldescribes how it can be done.It suggests that I create a new Charset converter to map unicode strings to the local font.But, the java compiler says it can't ...

Number Formating

924 byte By DM_Shiva at 2007-9-30 6:27:53
Hi,I'm using the following code for formating a number,public static String formater(double value ) {Locale loc = new Locale("en", "US");NumberFormat nf = NumberFormat.getNumberInstance(loc);DecimalFormat df = (DecimalFormat)nf;df.applyPattern("###,###,###,###,##0.00");String output = ...

Writing a file with special characters

2353 byte By MECHT4NK at 2007-9-30 6:36:33
i have this code to test writing a xml file by using a OutputStreamWriter object:package EuroFileWriter; import java.io.FileOutputStream;import java.io.IOException;import java.io.OutputStreamWriter;import java.io.Writer; public class EuroFileWriter { public static void main(String[] args) ...

converting a string into a unicode hex string

227 byte By groovyPete at 2007-9-30 6:36:59
Hi,I wonder if anyone could tell me a simple way of converting a string into its unicode hex representation e.g. 'text' would be converted to 0074006500730074 Thanks, Pete

Unicode character not displaying correctly

526 byte By trivedirakesh at 2007-9-30 6:42:46
when i am stroring Unicode Character in Oracle 8 DB .The Stored Character are not displayed correctly . Through sql client seen as '' .Altough through JSp it displays correct value 集 (in japanese)My client wants to see through sql also same value . Pls help wat is wrong. More info ...

Selecting proper font.properties file

423 byte By perhoc at 2007-9-30 6:43:00
How do I know which of the font.properties files to select for a certain language. For example, if I want to display Tamil (an Indian) language, which font.properties fils should I then use.I know how the filename of the font.properties file reflects the language and region and so on, but how ...

japanes character unicode

821 byte By borussenprediger at 2007-9-30 6:52:19
Hi allI have an XML-File with zhe following entries.<text Id="1" ><![CDATA[\u60df\u521d\u5927\u59cb\u9053\u7acb\u65bc\u4e00]]></text>\u60df\u521d\u5927\u59cb\u9053\u7acb\u65bc\u4e00 These are japanes character.I parse the file with SAXParser and now I want to show the japanes ...

Initialising strings with unicode characters

430 byte By ..-.-..- at 2007-9-30 6:53:03
This worksSystem.out.println("Hello World");but this will not compileSystem.out.println("你好");How do I get unicode characters into my Java source?I am running Windows XP and editing my files using notepad.If I save my source as ASCII it compiles, but I do not get the foreign ...

UCS2 and Unicode

340 byte By jimmy_82 at 2007-9-30 7:14:36
I have a string that is represented in hexidecimals.This string is in UCS2 format and I wanted to convert this string into its Unicode part.How can I go about doing that?For example, I have a string that contains the UCS2 representation of Chinese characters and I wish to display them in my ...

foreign characters (, , ...)

150 byte By morefeo at 2007-9-30 7:22:08
Hi, I've got a problem with my program recognising special characters such as ,and others. Can anyone help me with this? Thanks.

Writing Characters to a file regardless of nationalization

814 byte By Ranap_EL at 2007-9-30 7:25:08
while working on a software designed for text compression (with a textual output file)i have encountered a problem.....i am trying to generate a char represnted by a certain value (i.e.: 97 represent 'a' , 98 represent 'b' etc...).my values can vary from 0 to any value represented by 16bits ...