Hi,I am trying to read data from a france site using HTTPUrlConnection but the data is all shown as messed up to me.Here is the code i am using, any help will be highly appreciatedURL urlObject = new URL( " http://localhost:8000/i18n.htm" );HttpURLConnection con = ...
hello how to access hindi font in jsp page. i am using jsp/Servlet technology.i want to use ResourceBundle as internationalization.if u have any sample code for accessing hindi as Locale pls send to methanks in advance
Hi,my java version is jdk1.4.2 .I am writing java application.1. i need to get the default charset name, how can i do that on 1.4.2?2. another application (not java) using the MS-DOS default charset of the machine (for example on french machine the value is: cp850)to encode a certain file and ...
I am using iText to generate a PDF file that will load to my browser. The thing is, I have Japanese characters that I want to show in the PDF file. These Japanese characters are from the database. With iText, I need to get the Unicode of the Japanese strings that I have. I want to have my ...
Hello,Does anyone know if its valid to have a java class or file name that uses Chinese characters or does that have to be ascii?Is there any restriction on the encoding for class and package names?Thanks!
110 byte By
SandySa at 2007-10-2 15:47:29
Hi, is there anyone who is interested in an Internationalization web development opening at Menlo Park?
1337 byte By
Wloxena at 2007-10-2 15:49:43
Hello:I have a problem sending mail from a web application; when it's run from my desktop it sends mail OK, but when it's run from the server it sends messages with accents ant other signs garbled (in the body and in the Subject line).I've been investigating and saw that the difference ...
I have java Swing appication.Each screen has got number of buttons, labels, tool bar etc.It also have DateFormat, SimpleDateFormat, and DateFormatSymbols used for the i18n.Each screen has got a combobox listing diffrent languages.From each screen the user can select a language and that ...
In the 4th message in the thread below I write about an Internationalization plan for an application I'm working on. http://forum.java.sun.com/thread.jspa?threadID=719315&tstart=0To restate my second question a bit, what we want to do is test the text translation for various Locales from a ...
My goal here is to put together an easily understandable example of an Internationalised stand-alone java application.To start, I would like to create a stand-alone java application that performs the following tasks:1. Has a pulldown that allows a user to select a language (English, Arabic, ...
Hi,I am a Java/Swing newbie, trying to convert from C++. I am writing a small app to interface with a PostgreSQL DB. I would like to include a splashscreen, and have used the code on sun's website (see below). I call this from the main(). The splashscreen loads however it is simply a grey box. ...
Hi all,I have one basic query. Does java character encoding differs from OS to OS.Say for example i run a program that encodes a ascii to UTF-8 format. I see different outputs when comparing WINDOWS and LINUX. If UTF is a standard for representing a character how can it ...
277 byte By
raihanaa at 2007-10-2 16:26:59
I want to add a new font into the JRE. I tried doing it by installing the font, and editing the fontconfig.properties file. But, it didn't work. Can somebody help me out in doing so. I am woriking in Windows platforma and JRE 1.5.Thanks in Advance.Raihana
174 byte By
PaulJHa at 2007-10-2 16:34:33
anyone have references on the "history" of resource bundles? when were they introduced? why do they use escaped unicode instead of utf-8? blah blah blah.thanks.
139 byte By
innek81a at 2007-10-2 16:35:59
Hi,Does anyone have a sample english-french mapping file?good bye = au revoir......etcRgds
234 byte By
x4444a at 2007-10-2 16:40:14
I have foo_ru_RU.properties file with text in Cyrillic (utf-8)when I read messages by ResourceBundle.getString(key) I get wrong string.like 袗谢械?#136;邪How to set file encoding for ResourceBundle to to utf-8?
how do i make my code to be internationalized?suppose i have the code like thisActionMessages errors = new ActionMessages();errors.add("passwd",new ...
1354 byte By
Thahira at 2007-10-2 16:50:49
I am new to internationalizationI dont know how to run this file. i compiled this.I have a basic code taken from sun site.import java.util.*;public class I18NSample {static public void main(String[] args) {String language;String country;if (args.length != 2) { language = new String("en"); ...
I'd like to use Tamil as a test language for some translated java files.I don't know whether it is supported or not.Alternatives are Bangla, Gujararati, Kannada, Marathi, Oriya, Punjabi, Telugu. Are any of these supported?I'd prefer not to use Hindi.The only website I can find listing the ...
1207 byte By
SaiDevaa at 2007-10-2 16:57:26
The following code is to write greece and spanish characters to a datafille on solaris platform. and download the datafile onto windows systemString str3 = FileDataObject.getFcName().equalsIgnoreCase("GREECE") ? "8859_7": System.getProperty("file.encoding");// FileDataObject represents greek ...
How can I set the encoding so that I can insert a japanese text in my code? I'm using NEtbeans as my IDE
I've written a fully internationalized Java Swing application where all the displayed text is conveniently externalized in properties files. The application is a totally free backup utility, and volunteers have already translated it into six languages. However, I would like to support even ...
I would like to get the input from the user into a JTextField using a InputMethod.There are 2 JTextFields in the gui. One takes input in the native language say "Hindi" from India. and the other just takes input in english. The english one is fine. But I want to somehow set the property of the ...
1396 byte By
acsko2a at 2007-10-2 17:11:04
Dear all!I'm having trouble with the SimpleDateFormat class (jdk1.5.0_04). When set to "lenient" it returns the wrong date. When lenient is set false(i.e. strict) it throws an exception. Pls have a look at my code:public static void main(String[] args) {try {DateFormat formatter = new ...
314 byte By
tsegisha at 2007-10-2 17:13:52
i am writing a java code for hispogram of red,green,and blue pixels of an image but i can not identify how to get the histogram of red pixel,green pixel and blue pixel.i want to display three lines on histogram which are the histogram of red,green and blue. please reply the code as soon as ...
Hi,I have a applet which invokes swing application.For I18N of the application i have used properties file which are stored on the apache web server.ex: the following properties file are defined on the server are1) Myresource.properties2) Myresource_en_US.propertiesThe problem is whenever my ...
636 byte By
huanga at 2007-10-2 17:16:55
Hi, all. I'm doing a project using JAVA currently, and need to display some european languages in terminal. However, some special characters cannot be displayed properly,like <C3><A9><C3><A2>,<C3><A9>.The file is in French and saved as UTF-8, the terminal ...
401 byte By
SaiDevaa at 2007-10-2 17:18:59
Iam writing spanish and greek characters into text file .in j2sdk1.4.2 , and solaris platformsiam able to see spanish and greek characters when i open text file directly,but when i zip the text file , the spanish and greek charactes are lost and some funny characters are inserted like ...
Can you please help me in japanese text.I've created a property like this...btnOK = 廔椆titleBar = 俴俠俵儘僌僀儞丒儊僢僙乕僕I saved it as MessagesBundle_ja_JP.propertiesimport java.awt.*;import javax.swing.*;import java.awt.event.*;import javax.swing.event.*;import java.util.*;public class a extend...
Can you please help me in japanese text.I've created a property like this...btnOK = 廔椆titleBar = 俴俠俵儘僌僀儞丒儊僢僙乕僕I saved it as MessagesBundle_ja_JP.propertiesimport java.awt.*;import javax.swing.*;import java.awt.event.*;import javax.swing.event.*;import java.util.*;public class a extend...
hi friendshow the which is genrated dynamically eg fields coming from database n variables will be displaed in other langs.
Is it possible to tell the JVM to load "font.properties" files from a different location instead of "$JAVA_HOME/jre/lib"?Thanks in advance.Regards.
712 byte By
astiedla at 2007-10-2 17:32:43
hi audience,this is the problem given:German numbers ars comma delimitered and their thousends and hundreds are dot separated... quite the opposite to the English:-)I can archive this display in a JTable using the NumberFormat NumberFormat.getNumberInstance(Locale.GERMAN));If I use the ...
hi allCan be anybody has a file of resources with Russian localization for swing's? i'm lazy to create this resource files, :)thank you :) i'm looked swing_ru.jar, but it insufficiently full.
400 byte By
fealfua at 2007-10-2 17:46:53
Hi,I've a problem with new line character. I am in Windows platform butwhen I write a file with a BufferedWitter with println I obtain thecharacter "\n" x0D like separator (Unix Separator). My System propertyline.separator is "\r\n".Can someone tell me how can I obtain files with the correct ...
284 byte By
asklxfa at 2007-10-2 17:51:09
Hi, i'm using SimpleDateFormat to parse time but got Exception:new SimpleDateFormat("h:mm a z").parse("2:00 PM CST");gotjava.text.ParseException: Unparseable date: "2:00 PM CST"can anyone telll me there is anything wrong with "h:mm a z"?thx!
Hi, given an accented character (? ? ? etc...) is there a way to retrieve its base character? In the case above, a, o and c respectivelly?I searched in this forum and google and didn't find a definitive answer.The reason i need this is because in my database, some records have accented ...
hi allwhen i make property file say russian text . i tanslate enlish to russian from online translator then i paste it in editplus (Editor) then it display ? also when go to its document menu n set encoding to utf-8 it does the smae thing. do i need a special editor . i m working on windows xp. ...
369 byte By
Dimmya at 2007-10-2 18:02:19
Hi!I used localization ru_RU where LC_NUMERIC decimal_point is ","I want to be "."Before starting tomcat I useexport LC_NUMERIC=POSIXBut it doesn't have any effect. decimal_point don't changed.How can I change LC_NUMERIC in java programm? Or how can I change LC_NUMERIC format that it have ...
1284 byte By
Muksa at 2007-10-2 18:06:52
Hi,I am getting some text from DB2 which is chinese/japanese text and then want to display this in JSP. I am setting the UTF-8 character encoding in JSP and pageEncoding also. like as follows:<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %><%@ ...
my application need to display the greek data from jsp to the excel sheetbut i am not able to display the greek charcaters in excel even after using utf-8 character encoding. i tried with iso-8859-7 also even then its taking by default windows-latin encoding.my code goes like this:<%Vector x ...
777 byte By
cinmamla at 2007-10-2 18:28:23
Hi all, I have to parse a xs:dateTime String (such as "2005-10-27T16:18:06.421+02:00") into Date. I have tested the next piece of code:String timeString="2005-10-27T16:18:06.421+02:00";DateFormat dateFormat = new ...
I would like to ask a question about deployment a swing class on a web site.Any example I have from tutorials are not visible on my site just because these classes are extend JApplet. At the same time all which extend Applet are working. What else should I include to make them work?With grate ...
we are not able to retain the greek characters after zipping the files(that contain greek characters). the following code shows u a clear sketch about how we are zipping the files on solaris platform.ZipOutputStream out = null;try{FileOutputStream f = new FileOutputStream(zipFileName);out = new ...
197 byte By
KUMARa at 2007-10-2 18:40:28
the user able to type only Chinese letters in the text box?How to check the character in javascriptpls give some advise mevery very urgentWith regardsSolai
I am developing a multilingual application in swing. i want to display hindi, gujarati and english language in swing components like JTextField, JLabel and JButton. I am not getting the exact procedure to display contents on these swingcomponents. Can anybody tell me any demo application ...
1000 byte By
sim085a at 2007-10-2 19:07:12
Hello,Although I18N (Internationalization) has become a very popular topic these days however when I did a search on Google I always get the same examples coming. This is having a properties file with a set of keys and values, then name it according the locale and load it accordingly.However I ...
hi all,i have one simple doubt.....i need a java(swing) code to convert string to unicode number (/uxxxx)if i enter a string in 1st textfield equivalent code should be displayed in the 2nd text box(after pressing button).regards,uh
757 byte By
Sandila at 2007-10-2 19:24:52
I have a problem in converting arabic information from UTF8 to the iSeries Arabic Encoding Cp420 where the CCSID is 420.My objective is to arrive at a "UTF8" string where I can apply the utf8string.getBytes("Cp420") method to get data in Cp420 encoding as a byte array, which I will eventually ...
I've been developing a Java application using 1.4.2 that makes heavy use of foreign characters; several of the UI components can be switched to display in a slew of languages, including Russian, Greek, Chinese, Japanese and Arabic, in addition to more common European languages.This has worked ...