Hi,This is my code, I could not find the solution of my problem,--package propertiesdemo;import java.util.*;public class Main {static void displayValue(Locale currentLocale, String key) {ResourceBundle labels = ResourceBundle.getBundle("LabelsBundle",currentLocale);String value = ...
230 byte By
rigoloa at 2007-11-27 11:50:00
<p>I would like to be able to use European accented characters in class names.</p><p>Is it still not advisable to use non Ascii letters in class names with 1.6? Is it still not portable?</p><p>If so, why can't this be solved?</p>
889 byte By
oki78a at 2007-11-27 11:33:56
Hi,I posted my question already in the swing forum, but they told me to post it here... so here is the description of my problem:on my linux system (Linux localhost 2.6.21-gentoo-r4 #1 SMP PREEMPT Mon Jul 16 13:53:53 CEST 2007 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz GenuineIntel GNU/Linux) I am ...
1439 byte By
AlexRajua at 2007-11-27 11:14:43
Hi Everybody,I am trying to convert Java unicode to "Shift_JIS".I'm passing a HTML unicode to below code.And Java unicode is getting returned.String temp=conJavaUnicode(sTemp); // sTemp contain HTMLUnicodepublic static String conJavaUnicode(String Str1) {int num=0;String[] strArr={};StringBuffer ...
2811 byte By
roheada at 2007-11-27 11:07:22
I am trying to determine the correct way to compare unicode strings in an application that will be used internationally. The javadoc for Collator states that you should use the CANONICAL or FULL decomposition mode for correct results with accented characters. With decomposition mode set to NO, I ...
1280 byte By
jimmy83a at 2007-11-27 10:39:08
I am attempting to build a servlet to receive a parameter encoded in UTF-16. At this stage, I am able to receive and process UTF-8 parameters but not UTF-16. I believe this is due to the request.getParameter() method not finding the encoded parameter name. My servlet code ...
hi,i need to change the decimal separator to "." for the whole application when the Locale is French. (i don't want to change the locale because of date and ok cancel button labels etc...)i though the call DecimalFormatSymbols.getInstance().setDecimalSeparator('.');would change the decimal for ...
696 byte By
lotka at 2007-11-27 9:44:05
Hello all,I have to convert this UTF-8-Property-String:label_from=Отinto "ISO 8859-1 with Unicode escapes" with native2ascii.On my Linux-Machine (Java 5) I get:label_from=\u041e\u0442This is right and leads to a correct output :)On a Windows-Machine (I unfortunately have to work ...
hello,i have a problem.how can i know the unicode of chinese character in a file?like this character ' 称 ' in a file a.txtthen how can i do to read the a.txt file then get the unicode of the character?really need help..
3278 byte By
macdara at 2007-11-27 9:37:26
Hi,that's my first post here. I'm new to java and decided to use i18n + gettext in my first project.I run resin. I use ant to build execs. I followed this tutorial: http://gted.sourceforge.net/gettext_java_tutorial.htm (modified it a bit)I created resource bundles by:msgfmt --java2 -d ...
256 byte By
eatinga at 2007-11-27 9:17:48
Hi, it's a bidi problem.Given a character or code point, how could I know the orientation (right to left for Hebrew Arabic, or left to right for English) of that character or code point?Does Java provide any API to that?Thanks.
Hi,I have tried the following code:String [] fontNames = java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames(new Locale("CN", "zh"));for(int i=0; i<fontNames.length; i++){System.out.println(""+fontNames[i]);}And I have set language in Regional and Language ...
789 byte By
syt000a at 2007-11-27 8:38:25
i am making an application to be run on windows. It is deployed in a directory with the following structure:application.jarmainFolder/--lang/-bundle.properties--etc...I'd like to store my .properties files for the resourcebundle objects in the lang folder, not bundled with the .jar file. When ...
2574 byte By
lohtwa at 2007-11-27 8:22:10
Hi,I need some answers to the problems I'm currently facing. Thanks in advance for any help...The environment :Database : Oracle 9i - using SELECT * FROM V$NLS_PARAMETERS; NLS_LANGUAGE = AMERICANNLS_DATE_LANGUAGE=AMERICANNLS_CHARACTERSET = UTF8NLS_NCHAR_CHARACTERSET=AL16UTF16All ...
We have a JSF application that is programmed to support three languages - English, German, and Dutch. On the first page of the application, we ask the user to select their language, and then apply a Locale object to the JSF session based on their selection.Our message bundles are currently ...
Hi, there! I did a little Swing (jdk 1.5 on Windows XP) JTextArea and put in utf-8 characters of Japanese, Chinese, English (I am not sure if the English characters were of UTF-8 though because I typed in directly). All the text were rendered correctly. I know that this is because the OS has ...
Hi,We have one Localisation Issue in Weblogic server 8.1 SP6. Localisation works fine in WebLogic 8.1 SP5.We are using the "UTF-8" as the encoding schema and it's working fine in Weblogic 8.1 SP5 and the same application is not working in Weblogic 8.1 SP6. All labels are displayed in "?" when ...
1016 byte By
cookepa at 2007-11-27 5:18:59
Hello I am fairly certain this has been discussed before.I need ot format addresses and specifically postal codes so that not only our US post office is happy with a specific address/zip code so is the post office of the remote country that the form letter is going to.I know this has to have ...
Hi all,I am writing a program which generates an onscreen keyboard for typing various languages.I take the name of the laguage as an argument and generate the appropriate keyboard using Unicode.For this purpose, I have a list of the starting and ending unicode character for all the languages ...
Hi all,I have a string that comes in from a URL into an app with internationlised characters in it, say the string "d閚i". It comes through to the server as the string "d%E9ni" - all well and good. But then if I decode it using the URLDecoder.decode(string, "utf8") - the string gets garbled to ...
Hi allI'm facing some issue while reading chinese character from Oracle DB.We are able to store the string 中纪委正积极组建国家. But while reading it back one char is replaced by ?. 中纪委正积�?组建国家In database I can find the proper unicoded values sored. Following are the statements used ...
We are internationalizing the installer. In that we have a static string in one of the installer scripts as follows. :MessageBox("WARNING: Software requires at least "+requiredSpace+" MB free space. "+"\nThe distination drive has only "+diskSpace +" MB free space.\n"+"Please free up more space ...
117 byte By
JAntona at 2007-11-27 4:31:58
Hi,How can I conver string from getDisplayLanguage() of the Locale class back to the ISO language code?
Hi All,i would like to know the best way to display several languages in a same application and on different platforms (Windows, Unix).1) i know that font.properties located in Jre\lib can be used to update logical font but i dont want to touch this file2) i know that the method setFont exists ...
232 byte By
ariaa at 2007-11-27 4:08:21
Is there any font supporting unicode and having glyph for space bar that is right to left?Maybe this is the fastest and easiest way to type RTL and LTR in and editor.AriaMessage was edited by: aria
Hi all,The Japanese characters ソqソセ are saved in DB table as 縬烤. If you use 縬烤 in a html file, it shows up correctly in a browser using Shift_JIS encoding.Can anyone figure out what charset 縬烤 are in?The reason why I have that question is I need to find a way to convert ...
238 byte By
ariaa at 2007-11-27 4:01:40
HiMy new PC(portable) does not compile my java progran:'javac' is not recognized as an internal or external command, operatable program or batch file.If you have any suggestion, please let me know!Aria
HiI'm working on a swing application which runs on JRE14.2 on English windows XP. We need to pot our application to chinese. Can any body suggest a good Java based Chinese IME for the same?ThanksJobinesh
Hi allThank you every one ....for giving me a temendous support to solving my problems..here iam strucked out with a small problem Here it goes Iam doing a chinese project in struts hibernate and springIn this iam getting some data from database(mysql) data is in the for of unicode..Let assume ...
Dear Sirs,I have an issue in displaying UTF-8 characters in Internet explorer 6.I set up my all jsp pages encoding as UTF-8. Any language characters(like chinese,tamil etc) perfectly dispaying in firebox browser.But in internet explorer, the characters are not displaying.it displays like ?! .. ...
254 byte By
vvana at 2007-11-27 3:17:14
Does anyone know if Java supports Chinese Phonetic and/or Stroke characters sorting? I've search everywhere including the "Sun Forums"and documentations but found nothing specific about the aforementioned sorting technique.Vira Van.
hi Thanx alot for every one.......Here iam struggleling from last few weeks with this problemThat goes like this How to insert a chinese character exctly in to the mysql data base(Iam using mysql-5.0) Here i did some thing......please can you correct it if anything goes wrong..Some where in the ...
i want to insert .dbf files in my J2EE application. and ultimately i want to show the result as per the requirement through that particular dbf file.i m new to J2EE programming. so please explain me in detail.
209 byte By
mehappya at 2007-11-27 3:04:58
Hi,Help will be appreciated,Using NetBeans (Using jdk1.6.0_01 and windows xp pro ) ?Created properties file in local Hebrew but received gibrish in the final outcome, how can it be fixed ?
381 byte By
ariaa at 2007-11-27 2:54:02
Hi everybody,Would you please help me regarding following questions?1) I have made a simple right to left editor but it is impossible to have number(left to right, even english letters) besides letter(right to left). I use jsd1.4.2) I run my program from MS-DOS. How can I have window(s) to ...
I have a application which need to change the language at runtime. All other things work just fine except the JOptionPane.The button displayed by JOptionPane.showMessageDialog() always use the language displayed the first time my applicaiton started.Even after I use Locale.setDefault() and ...
Hi,I'm currently working on a site where I've been asked to build multilingual support in terms of accepting foreign characters in inputs and properly render foreign chars in html, xml etc . The main concern is that the database that pull all data for this site is using ISO8859-1 as charset ...
Not sure if this belongs here or on the Swing Topic but here goes:I have been requested to restrict entry in a JTextField to English alphaNumeric and Full-width Katakana. The East Asian language support also allows Hiragana and Half-width Katakana. I have tried to attach a DocumentFilter. The ...
1228 byte By
Nicua at 2007-11-27 2:03:39
Hello,One of my customers has told me that "Here in Switzerland, currency amounts with 0 cents are written with a long dash, 4.-- instead of 4.00."It seems that Java doesn't know it. If I'm using the de_CH locale, I will always get 4.00. How can I achieve this with Java besides replacing .00 ...
801 byte By
wawerua at 2007-11-27 1:57:19
I am working on a project involving swing components and hava used netbeans to develop a swing components based interface. I have used the internalisation wizard to generate the resource bundle inro a properties files which works successfully.I have created a locale for the arabic version and ...
8335 byte By
landoaa at 2007-11-27 1:42:14
hi,i have the difficulty on sending chinese sms using J2EE application.i try to input the chinese word to jsp and send the plain text sms. i received the sms with plenty of question mark "?". i think it is regarding to the conversion of String to some kind of format that supported by mobile ...
1157 byte By
NickDGa at 2007-11-27 1:29:05
I have a couple of resource bundles:- Messages.properties (default, in English)- Messages_nl.properties- Messages_fr.propertiesWindows' regional settings are set to Dutch (Belgium) which makes the Java default locale 'nl_BE'.I want to get the resource bundle using the locale 'en'.I expect ...
454 byte By
googa at 2007-11-27 1:16:47
hi,i am developing a web application, where user enters input in japanese. once user submits the form. I need to check the input string with entry in a UTF-16 file. If any entry found in the file. I need to reutrn the entry details to the user on the JSP page. when i submit the page, i am ...
Locale class returns a name for the locale appropriate to be displayed to the user using getDisplayLanguage method. But this returns "Chinese(China)" for zh_CN locale, and "Chinese(Taiwan)" for zh_TW locale. Is there a way to get "Chinese (Simplified)" and "Chinese (Traditional)" respectively, ...
Hi allmy project is multilanguage, now greek is going onUsing struts framework, try to acheive this....so, i retrive the greek value from the resource properties file, not from DB(SQL Server200)am using eclipse ide so when i debug, i found that response was not set in UTF-8, charset was not set ...
1166 byte By
f94-mgia at 2007-11-27 0:37:21
Hi all,I'm developing a internationalized web application. Should work all over the world, all languages.One function is to allow the user to upload his CSV with contacts, exported from Outlook or GMail for example.Everything seems to work fine if clients have charset Windows-1252 or ...
14716 byte By
landoaa at 2007-11-27 0:33:07
hi guys,i am the new one in developing the multilingual software.let me explain : the tools used are : Jboss 4.0.4 , MySQL, Eclipse.user key in the chinese or other languages[like greek] in the jsp page. then will uses <form .......... method="post" action="create_user_confirm.jsp"> to ...
Are there some Font supporting all utf-16 code including all supplementary code?In an application, I need to show some text encoded in utf-16, which is multilingual andHave some of supplementary character, so want to know a font to show it correctly? While find nothing from the internet, so ...
5368 byte By
hopia at 2007-11-27 0:03:24
Hi,I know I have international (meaning Unicode above 0x7F) characters (e.g. ? in a String that I use to invoke a CGI script on a server. The CGI script does not get the data correctly. I can prove to myself that the String (in particular the password data) displays properly before sending and ...
hello dear all,this problem has puzzled me for a long time.how can i get the exact Range of codePoints of every UnicodeScript(Latin,Han,.....) or UnicodeBlock(Basic_Latin, Latin-1 Supplement, Linear B,......)?so that i can do some iterations to display the Unicode Mapping (like the Windows ...