635 byte By
mlepine at 2007-9-26 1:21:12
Is there a way to force a ResourceBundle to reload properties that it has read in? For example, if I call:ResourceBundle.getBundle(bundleName, Locale)I am returned a ResourceBundle containing all the resources (properties) that it read in. Initially this is what I want; however, I want to be ...
390 byte By
sasato at 2007-9-26 1:22:18
I can't see the Euro character and I don't understand why. I use the symbol \u20AC and it doesn't work. I have use some fonts which allow the symbol but I only get a white space or nothing.I haven't tried to print it but I'll try. This problem happens trying to show in JLabels or ...
Hi ,Can you Pls. help me with a problem I have with Internationalization.My application runs on English version of NT & I'm using SQL 7.0.The Application consists of an Applet and I can enter Japanese Text with an IME but when I send the same text to the Servlet for inserting into the ...
493 byte By
irwin74 at 2007-9-26 1:30:19
Hallo all,I am reading a datafile which will return me a string -> \u6210 . I want to convert this string into it's UTF-8 Encoding."\u6210".getBytes("UTF-8"); This is the normal way to do it i believed .But when i try this from the input datafile. It's reading the '\u' unicode escape seq ...
Hi all,I am facing a problem that my project needs to display chinese characters in one html page which is in "BIG5" or "UTF8". But characters are retrieved from 2 DB that the charset are in "UTF8" and "BIG5".My boss doesnt want me to use some function like change big5 to unicode or something ...
hi All. I have a program that reads a file and then writes it out to another file after some manipulation. The original file is ansi encoded. When i write out the file, certain characters are not written, instead they are written out as a "?".These characters appear to be in the 128 - 255 ...
Hi,I have used file reading before but in the following case, I am having a problem.My java program can read files that are UNIX UNICODE fine, but when it comes to PC UNICODE, it doesnot recognize any word from the file.Am I supposed to specify an additional step to read PC UNICODE file?PS: ...
Hello.I use Mozilla 0.9.1 in Linux.I install JRE_1_3_01 and make a symbolic link.(JRE_1_3_01 is only Java package in my system.)When I start to access java applet via Mozilla,Graphical applet and English one display well.But, Korean in applet doesn't display.One Korean Character is match to ...
854 byte By
snodx at 2007-9-26 1:57:47
Hi Everybody,I want to add a language translator web-page to my site. The page will accept text submitted in ANY language and translate it to any language requested by the user. The service is also supposed to include displaying the translated text in that language's FONT .i.e if the text is ...
442 byte By
11037803 at 2007-9-26 1:58:59
i'm trying to present text in different languages, like english, greek or cyrillic and so on. i want to work with the Arial Unicode MS font, that is installed on my system and which DOES appear in the getAvailableFonts() list!!!But when i try to display a greek text i see not all glyphs ...
have a manager that wants a dynamic multilanguage user interface.If I follow the Java tutorials guidelines withresource bundles and all that, Can I just doa revalidate or invalidate and repaint on the top level container after changing the localeand all the text in all the buttons and menuswill ...
505 byte By
jane75 at 2007-9-26 2:12:25
How can I convert the japanese data written in unicodelikeString nihongo = "\u65e5\u672C\u8A9E";to japanese word ? I have tested with code below :byte[] nihongo_sjis = nihongo.getBytes("SJIS");but it just given me the result likeb343er34343not the real japanese word.How can I convert this ...
Hi experts, i get a interesting problem for handling HK wording.i am doing a project which take input from the web by using JSP and store the result to Oracle DB(charset UTF8).i found that some character is change to something like this "# & 3 7 0 3 2 ;" rather that a a unicode character ...
Is it possible to find out the list of characters encodings (UTF-8, cp1252) supported by the JVM dynamically at runtime?I am aware that there is a list of supported encodings listed on the Sun site for Sun's JVM. However, I also know that the supported encodings can vary depending upon the ...
I'm new to computers in general, but how can I write text onto a JTextarea - i need to type into one TextArea in Spanish and in English in the other - can I set up a textarea to be able to write words that include Spanish characters - I've read through most of the forums, but most don't ...
131 byte By
jane75 at 2007-9-26 2:25:53
Is there any big different I use string.equals and collate.equals to compare japanese word , french, icelandic etc ?
97 byte By
maxima2 at 2007-9-26 2:27:02
How can I use StringTokenizer for hebrew text?(Direction from right to left)
998 byte By
rflahert at 2007-9-26 2:30:16
My test code converts a Unicode string to UTF-8 and back. The Unicode->UTF-8 seems to work, but UTF-8->Unicode fails. I copied the code from String's constructor taking the encoding to see if ByteToCharConverter was throwing an exception, add it was throwing a MalformedInputException. It ...
1267 byte By
sibijv at 2007-9-26 2:38:46
hi allI have a servlet which outputs some chinese content to the browser. The webserver i used is Tomcat3.2.3. if i try browsing chinese sites with chinese char encoding on a english version of windows 2000 the pages comes well without specifying any encoding. When i used the same servlet in ...
151 byte By
jmschrei at 2007-9-26 2:40:19
Where is a good place to get a complete listing of \u characters? Is there a reference book that would list these? jmschrei
1169 byte By
chm_oxia at 2007-9-26 2:46:43
Hi !I got a strange behavior using ResourceBundle.getBundle("mypackage.MyResource").Here is my code :private static be.arci.cramfull.Cramfull resImgResource = (be.arci.cramfull.Cramfull)java.util.ResourceBundle.getBundle("oxia.mage.tools.ImgResources");When I execute this from VisualAge, it ...
476 byte By
safir at 2007-9-26 2:58:55
hi,Spent 4 hours to find a way to use non-ASCII chars in applets (buttons, textareas), but didn't make it.Simply saying TextFieldObj.setText("\uxxxx");//or any equivalent obj. Ex. of \uxxxx: \u015Fdoesn't work. I even went into Graphics.paint() example, but it too can paint only ASCII ...
492 byte By
jmschrei at 2007-9-26 3:02:52
I am writing a program and currently trying to use internationalization. Is there a way to change the language displayed on a MenuItem on the main window that never gets closed while the program is writing.ie. The user clicks the new language on a Change Language window. I set the new Locale. ...
781 byte By
carlosnf at 2007-9-26 3:05:26
Hi,This might be an FAQ question but some of the info I've gotten over the web so far is conflicting.How do I allow a user to enter Chinese text into a Java Text Area (using an english keyboard)?All my users have:*English Windows 2000 with a multilanguage pack.* I cannot change this.But, I can ...
Guys,How come there's no spanish locale in java.util.Locale? Is it ok to just do new Locale("es")? How about DateFormat and NumberFormat? Do they support Spanish?Miguel
2024 byte By
kapil_ji at 2007-9-26 3:12:42
Hi I have a problem in detecting the encoding of content of any file at runtime.to genrate the problem please follow the steps:1. create a text file with wordpad(Windows) with just 1 or 2 line for example: JAVA PROBLEM2. save this file with name test1.txt by selecting save type as Text ...
231 byte By
airqq at 2007-9-26 3:19:51
hi all,Is there anyone experienced with how to check the double byte character fall in 'A'..'Z' and 0..9?example, read a char then compare with \uFF21..\uFF3AThanks,regards,Elvis
185 byte By
ndrw198 at 2007-9-26 3:22:06
Is there any way that I can change the language of the text in JFileChooser, ie, where it says File name and File type and such.Thanks for any help you can give me.
437 byte By
gboza at 2007-9-26 3:28:06
I want to test if the Java code for one of our products is internationalized. For that, I would like to use a dummy translation or pseudotranslation of the resource bundle. Are there any free/cheap tools to do the pseudotranslation? I also looked at machine translation tools but for this I need ...
Hi,I have this app that loads a ResourceBundle and reads from a properties file for all of the properties that map to the GUI widgets. The GUI widgets' text are extracted from this prop file. I am having a problem with this in that when I try to display these values then some of the Arabic ...
2612 byte By
goask at 2007-9-26 3:34:00
Hi,I am running a Mandrake 8.0 with Traditional Chinese setup. Chinese can display in native apps. However, when I run any Java apps with a GUI the console has the following message:Font specified in font.properties not found [-tlc-song-medium-r-normal--*-%d-*-*-c-*-gbk-0]Font specified in ...
1132 byte By
carlosnf at 2007-9-26 3:35:57
I have a Swing Application - and I want to have part of the GUI in Chinese. (List boxes etc.) In order to do this, I use Bitstream Cyberbit font and it works fine.In order to Input data in Chinese in a TextField, I use NJstar to do the data entry. This works fine on its own as well.- Now, when ...
I'm trying to handle dates in different formats, but I'm not even able to get Java running the following example:DateFormat df = DateFormat.getDateTimeInstance(DateFormat.DEFAULT, DateFormat.DEFAULT, Locale.getDefault());Date date = null;try {date = df.parse((new ...
Requirement: Read a text file containing foreign characters and print it/ store it in string bufferProblems: Doesnt work, and throws exception whenever Reader.read() or BufferedReader.readline()method is envoked...How do i get arround this?Here is a sample text from the file...Angende ...
1266 byte By
carlosnf at 2007-9-26 3:44:30
Just a quick note - I discovered that Windows 2000 (English version) does support input methods in Chinese AND it works with Swing. :)There was some talk of using third-party software like njstar, but I guess it seems to be only needed in NON-Windows 2000 environments.To activate Chinese Input ...
1082 byte By
carlosnf at 2007-9-26 3:46:01
NJStar: Can't enter Chinese but can pull Chinese programmatically.I have tried using NJStar, but somehow, the input methods dont work (suddenly) and I cant enter any information in Chinese into text boxes.That said, I can read a txt file created by njstar and pull out all the data in Chinese. ...
Hello All,I need to find the closest match given an array.The array may not be sorted.If the search string "abcd" and the results array is {"abc", "abce", "abx"}, we should have the result sorted as {"abc", "abx" and "abce"}. At the same time, I need to highlight the record "abc" since it is ...
482 byte By
ulukb00 at 2007-9-26 3:52:19
I have a database column stores japanese char in Shift-JIS encoding. Aperl script can read the database and display the result on browser.But If i try the get the japanese string in Java using JDBC. I got anexception:String text = resultset.getString(1);Exception in main(): ...
1004 byte By
joefk at 2007-9-26 3:54:07
Hi,I am developing some educational software with our local high school on a volunteer basis (no fees, just satisfaction and appreciation). In about 10 days we will be giving a demo of the program. One of the features of the program is the ability to switch languages. In our demo, we'd like to ...
286 byte By
jerntat at 2007-9-26 3:54:46
Hi, Can anybody tell me step by step what i need to do to display chinese in my Java Applet.I have currently try to output some chinese on JOptionPane.showMessageDialog() and also the paint() method but both only show the unicode but not chinese.Please Help.
286 byte By
jerntat at 2007-9-26 3:54:47
Hi, Can anybody tell me step by step what i need to do to display chinese in my Java Applet.I have currently try to output some chinese on JOptionPane.showMessageDialog() and also the paint() method but both only show the unicode but not chinese.Please Help.
1644 byte By
yilmazay at 2007-9-26 4:02:13
hi everybody, i am having trouble with character encoding i almost memorized jason's book's internationalization chapter. but none of those solutions work. see the code below: String name = req.getParameter("name");name= new String(name.getBytes("ISO-8859-1"),big5); though this looks quite ...
212 byte By
vladshtr at 2007-9-26 4:08:54
Hello,I am interested in accessing an .properties file which is located outside of the folder that contains the application. If any one can help me please answer:))Thank you in advance
446 byte By
kilyas at 2007-9-26 4:12:36
hi,the following link mentions java.io.ByteToCharConverter class as a base class to convert characters to an external encoding : - http://java.sun.com/products/jdk/1.1/intl/html/intlspec.doc7.htmlHowever I can't find this class in the java.io package. Howcome. Is it deprecated or something or ...
413 byte By
yijunwu at 2007-9-26 4:17:17
Dear AllDoes anyone know how to use swing components to display HTML pages that contain Asian characters? I have tried to use JEditorPane to display a html page which contains some Chinese characters, but it shows square boxes instead of Chinese characters, I wonder how I can correctly display ...
Any idea why, when saving a source file in JILKIT 2.0's msgtool (in a windows env), the file gets saved using unix-style newlines?thanksScott
520 byte By
carlosnf at 2007-9-26 4:20:58
Hi,I will be receiving chinese input from a browser window. This chinese input is then passed to an applet using Javascript-Java communication. Will a Java 1.1 applet be able to convert this Chinese input into unicode?If not - can I leave the string as it is and pass it (via applet-servlet ...
2024 byte By
kapil_ji at 2007-9-26 4:28:01
Hi I have a problem in detecting the encoding of content of any file at runtime.to genrate the problem please follow the steps:1. create a text file with wordpad(Windows) with just 1 or 2 line for example: JAVA PROBLEM2. save this file with name test1.txt by selecting save type as Text ...
750 byte By
carlosnf at 2007-9-26 4:29:41
My applet has a chinese string such that:String text = "\u5B57";I am trying to get the Applet to post the Chinese String. By the time the String reaches the server it is already "?" - so I gather the encoding problem is occuring on the client (the applet). How do I ensure that this works ok?My ...
528 byte By
carlosnf at 2007-9-26 4:31:51
Hi,As you people on this forum know - There can be a many reasons why a character/String appears as "?" - it could be because of the absence of a font, improper encoding, whatever ...In order to debug ... is there any function like the one below.String ...