I'm struggling with an attempt to convert arabic characters encoded in UTF-8 to Unicode characters and display them on a JTextArea.The conversion is performed as following:Stirng str = "<arabic text in UTF-8>";ByteArrayInputStream bai = new ...
194 byte By
ptiea at 2007-10-3 3:20:25
Hi,If I press the comma on my numpad, a period is shown in my Java UI.First of all, is this a localization issue? If so, how do I solve this issue?Thanks!Peter
Hi all,I have one program using getMonth() and getYear methods. But these methods are depreaceted. can anybody tell me which methods to use instaed and how to use it?
Dear sirs,I am having the following issue in chinese internationalization.when i stored the JSP form parameters(typed in chinese) in database,it stored some kind of junk characters ....and when i displayed ,they showed like SMALL SMALL tables.... in my browser.Our project is java based web ...
Hi all,I am working on an I18N application and in my application one component sends the request to another component and then this component fetch that requet and extract the query-parameters from the request (HTTP request).Now the problem is that the input to first component can be given in ...
272 byte By
GHKBella at 2007-10-3 3:34:31
I would like to know if it's possible to discover (at run-time) what physical font is being used when I specify Dialog as my font.I need to get glyph widths from the physical font and as far as I know there's no way to do that with the standard Font class.
HI....I am facing the problem when refreshing the browser.Eg:let us assume if we have one webpage which have feilds like name and dataofbirth.if we enter the data and submit it the data will be insert into the database.if i refresh the browser then again the same data is inserting into ...
Hi All,I have a web application that recieves a list of possible locales from the client and according to the locale presents the UI language.I would lik to add a mechanism that will allow me to first check the locale, verify if i support the locale's language(- resources files for htat ...
3118 byte By
k5ma at 2007-10-3 3:47:35
Hi !I want to load the "Chinese.properties" file in object of Properties Class. "Chinese.properties" is a unicode based language file. This file includes keys in english and values in chinese [actual representation not unicodes]. When I load it in my object of properties. It is not loading ...
SimpleDateFormat parse fails on BIDI system using the correct format...SimpleDateFormat df = new SimpleDateFormat( "yyyy-MM-dd");System.out.println("Current Date: "+df.format(new Date()));try {System.out.println("now parsing current date");df.parse("2006-08-30");} catch (Exception e) { ...
Hi, I am doing project for SA. That requires Arabic language to be included in JSP. what are steps required to so? I am putting arabic content in properties file. and trying to read to content using ResouerceBundle class. But I am getting the following ...
Hi,I am doing a web project.it already contains many resource bundle files forspanish,english.i want to create a new resource bundle for german,on theexecution of my project.then from the next time that resource bundle should be added to the previous files.Thanx for any help in ...
Hi,I am doing a webproject,in that project i have many locale.If i click on locale,say,for spanish then the characters in thebrowser is displayed like 'CATA?1/2LOGO'.what would be theerror?Thanx in advance for any help,Thirupathi
2866 byte By
k5ma at 2007-10-3 4:16:03
Hello Every One, I have an application that is supposed to read the content from the XML file and display them on the screen. XML file generated by a Java Application, this XML corresponds to the Property Object in Java i.e. in java i am using PropertyFile object to load this XML. When i try to ...
Hi,i am recieving the OS Default EOM code page value throught a C++ function into Java.different machines produces different values such as 850 that matches to Cp850 in java but there are cases in which i cant do suc a simple convert such as EOM Code Page 1026 that is to IBM1026 Code Page.1. ...
Hai,I hope every on doing fine! I am having problem in unicode values printining(java2d printing )code is like g2d.drawString("\u0bc1");while displaying in swings text box or table its displaying properly but wile i am giving it to print using draw string its not comming properly plz help ...
I have a string of Chinese characters.When I display it using a jsp page, some random quote characters (") are being displayed.Any idea what could be causing this ?
Hi All,In my code , I receive a OutputStream from response() of HttpServletResponse and the resultant output stream is passed to transform to a StreamResult constructor. My stream consist of a Multilingual string which is coming as ? . Here is my code. public boolean execute(String ...
Hi all,I want to convert the International Domain Names (IDN), which are in native language such as Japanese fonts, to xn-- form also known as Puny code.for e.g. when you type the following URL into the address bar in IE7 or Mozilla firefox :東京観光.comThen it gets ...
Hi,I am using log4j to log messages into a log file.the problem rises when i need to log japanese strings into the filethe string is saved as sequence of '?'.I need to save the Strings as a UTF-8 encoded Strings.I am using a Log object , and invoke the info(String message) to send the message ...
147 byte By
lijimola at 2007-10-3 5:40:19
I developed one website in English . Now i want to globalize this website in languages lik e French , Chinese , Hindi etc . How can do this?
147 byte By
lijimola at 2007-10-3 5:40:20
I developed one website in English . Now i want to globalize this website in languages lik e French , Chinese , Hindi etc . How can do this?
Hello I have a major problem regarding the Windows IME. When i try to change the KeyboardLayout to japanese. I successfull change the keyboard layout with the Win32 ActivateKeyboardLayout function to japanese. But unfortunally i am not able to activate the IME itself as ImmSetOpenStatus always ...
Hello,I am developing a desktop application with Swing and the application will be in two language using i18n.But I have a doubt: I do not know which is the best way to translate the components (labels, buttons,...) of the GUI: 1. Create a Property Resource Bundle and from this property file, ...
Hi,I am doing web site developement in arabic language where user enter their details in either arabic or english . From server i am able to display the either language characters on browser. But I am not able to catch the characters submitted by the form object in the tomcat web server. I am ...
Hello i am feeling a little bit lost at the moment. For an application i need to send key events to a text field (just like a normal keyboard). But if i i try to send KeyEvent's nothing happens with an enabled IM. Do i understand it correct that i have to create an InputMethodEvent to send a ...
3180 byte By
marsuea at 2007-10-3 7:12:56
Hello all,I'm reading on this forum for a long while, I always found valuable info on this forum, but today I need your help .I'm on that since 3 weeks now. Here is the problemI've got a perl cgi sending out a text to java, for the greek characters the only thing I can read from Java are ...
i have a problemI am doing Internationalization of our Product in My companyIn Swedan and Norway Currency thousand seprator is a special character that is a cap above letter 'a'.I need to remove this special character from currency to store it in Normal allowed form.I found the Unicode value ...
413 byte By
gubloooa at 2007-10-3 7:36:38
Hi guys,I need to write a method that takes the user input from a webpage and recognize if it contains foreign characters. By foreign characters I mean characters in any other language other than English.The only idea that comes to mind is to check the ASCII value of the characters and if it is ...
Hi Friends,Problem Description : I am working on a web application(3 tier) which is IS0-8859-1 compliant. Want to convert it to UTF-8 for cyrillic language support.Application architecture: Jsp , Strurts , I18N,JSTL.I had performed following steps to make it UTF-8.1) JSP pg/ html pg : ...
492 byte By
PremMa at 2007-10-3 7:46:22
Hi All,I am working on a different API provided by SAP.We have a User object on which we invoke a method called setLocale(Locale).So the Locale is passed as an argument.In Eclipse when I type Locale "." and Ctrl-Space, I only get a few like CHINESE, GERMAN etc. all constants.I need to set it to ...
Hi,I am new in java internationalization world and I got astonished that it is not possible to use non-ANSI encoded property files. Any how, I tried to use native2ansi utility to convert UTF8 encoded property file to ANSI using this command:>>native2ascii -encoding UTF-8 ...
I want to store the value of <fmt:message key='"...'/> in a variable so that i can use it as a default value of text box, which will change with different languagee.g above fmt messages gives "enter text" in english then same text will be in french when french lang is selected.I think ...
937 byte By
k5ma at 2007-10-3 8:35:39
Hi everybody!I'm loading slovenian language from xml-properties file. Language is loaded successfully. But some of its characters are shown like blank box or '?'.I'm doing the following tasks to show slovenian language in my GUI components:1 - created object of properties class2 - load ...
793 byte By
sim085a at 2007-10-3 8:41:10
Hi,I have read several articles and chapters regarding I18N, however I still consider myself new to this topic mostly because I have never developed anything that supported I18N.Basically I know how use the ResourceBundle to load strings from different properties files according to the locale ...
Hi friends,I getting one strange problem while implementing UTF-8 encoding in I18N web application.Following are the two keys in myApplicationResources.properties=========================text1= Жtext2= informa珲es=========================* My ApplicationResources.properties file 's ...
i am using .property file in my project As we have key value pair in property file.In my application there is a need to pick image different in different scenario Anyone can please tell me how to define any image file in property file.I need answer with example ...
HiThank you for reading my postI have a file that i convert it using native2ascii , now my file contains many \uFFFF , in which FFFF is a hex number.I want to convert the file back to its orijinal format but i can not do it using -reverse option of Native2Ascii , does any one used native2ascii ...
I am using the following code to reload the resourcebundle but still facing problems. Can anyone let me know what the issue is in the followingClass klass = ResourceBundle.class;Field field = klass.getDeclaredField("cacheList");field.setAccessible(true);sun.misc.SoftCache cache = ...
600 byte By
W.Liua at 2007-10-3 9:20:41
I was trying to print out UTF8 chinese characters in my console,after setting up character encodings and everything(I think)I managed to do that but for some reason, some of the characters can't be shown (display ? instead),here is the code:PrintStream out = new PrintStream(System.out, true, ...
Hello to everybody:I'm posting because I would like somebody to help me creating my JSP page with i18n. What I do is to read a Locale variable stored in a cookie, which passes to be the default locale of the machine. Then I try to load the properties archive thru ResourceBundle, but I get two ...
1812 byte By
fouadka at 2007-10-3 9:38:15
hey all , i am new to i18nwhat i am trying to do is to put arabic text in a jbuttonwhat i did is the following but i get "?" instead of the arabic text although my computer support writting arabic text...import javax.swing.*;import java.util.Locale;import java.util.ResourceBundle;public class ...
hi all,i want the postal address in my appliction to be internationalized please suggest the way with code snippets.Regards,Krishna.
440 byte By
SRHa at 2007-10-3 10:08:13
Hi every One,In my Project there is a One option in that i can send Product Information as well as Customer Address to specify Email id , In Customer Address Have some Ascii Characters .After Sending a Mail when i Check Email that Ascii Character replace by ? .Past 4 days I am trying that one , ...
I am using an email template (Velocity Template) to generate emails to be sent to our Spanish account holders.For some reason, words with the `, and currency value as euros.My email template is using UTP-8..Please advice on how to fix this.Thanks,RM
I have a Japanese URL encoded string IN A FILE. The URL encoding is in SHIFT_JIS encoded form. Now when i read the same, i get something like a sequence of %HH in a string which i decode using the URLDecoder.decode method and gives out Jap character. It is working fine.Now suddenly i have ...
Hi,I am getting some junk characters (?) instead of chinese characters in the IE. Locale settings in the DB fine. In the DB chinese characters are there, but when i query the data from DB, in frontend junk characters are displaying. Plese let me know any solution, it is very urgent.Please mail ...
759 byte By
stata at 2007-10-3 11:16:08
HiI am using Turkish language is my locale. I am able to display TUrkish language in my broser. But when I do some string functions (toLowerCase(), toUpperCase(), length())they are not working properly its displyaing some junk characters . This is my jsp program.Locale loc= new ...
Hello Forum...Does anyone know how to convert a japanese document in MS word format to UTF, so I can use the text in a properties file for a resourcebundle?Many thanks/j-p.
HiWe are working on a swing application which is supposed to run on windows system with regional and language option as English(United Kingdom) . In one screen of the application we need to capture data in arabic. So we are switching the appropriate locale on focus gained and focus lost of the ...