449 byte By
horitio at 2007-9-27 16:24:22
I am doing a project in java by displaying IPA(international phonetical alphabetical) in JButtons.The strange thing is that these unicode can be displayed well in JTextArea, but most of them cannot be displayed in JButton, except a few like "u00e6".The coonect of IPA unicode can be found in ...
Is there a way to set the font on JOptionPane or JFileChooser yes/no option buttons? I'm writing code that needs to display Chinese characters correctly, even if the user is using a font such as Tahoma. You can set the font with setFont(...) on any component but for some reason I can't get ...
587 byte By
vincmac at 2007-9-27 16:30:32
Hi,We have a small problem here we are trying to specify some international characters in a configuration filesalutation =\u0066;\u00e4;\u00f6;and read that in the actual code itself using the salutation encoding which is another parameter in the config file but at the end of the day what we ...
479 byte By
prccp at 2007-9-27 16:32:36
If you are using JRE international version, the Chinese characters willbe displayed correctly in the applet. But if you are using JRE(US-version),bad, event cannot start the applet ( an unsupportedencodingexceptionthrowed out).I don't want to force the people to reinstall their JRE to support ...
Hi all,I have asked this question before but none of the replies seemed to help, so i'll ask again but try and word it differently.I have a web page with a few form fields. when data(say big5) is entered in the form fields, using DHTML and microsofts client side XML implementation, i XML up ...
241 byte By
suja_k at 2007-9-27 16:44:38
I am using JFileChooser to load some files in my application. I have some files which have japanese file names. When I try to load these files it does not even display these files for me to choose and then load them. Any ideas?
Hi experts,I would appreciate any thoughts on this little issue I'm trying to work around..Am reading from an input stream as:new BufferedReader(new InputStreamReader(httpConn.getInputStream(), "UTF-8")).read(char[], 0, SOCKET_READ_BLOCK_SIZE) On certain documents that traverse the stream, I ...
293 byte By
jlsjls at 2007-9-27 16:59:23
Hi,I need to translate a Java String (Unicode-format) to the OEM character set. How can I translate the Java string into this character set?I need the OEM set since I need to steer a display which can only supports this character set.Thanks in advance.jlsjls
587 byte By
rudyshek at 2007-9-27 17:00:28
Hi allI am now doing a java program to query result from SQL Server and write those results to a ASCII text file (the text file is used for another software that only support ASCII text file as input).Since records in SQL Server contains Chinese words stored in unicode format, I failed to write ...
521 byte By
muckefuk at 2007-9-27 17:05:22
Hello,I tried to input special chars inside an HTML Form <textarea name="query"> and insert the value via servlet to an database table. If I insert the special chars in SQL directly anythings works fine. Seems like the database has the character set installed correctly. But Java losts the ...
557 byte By
suja_k at 2007-9-27 17:12:02
I have a JTable in an applet which I use to display some Japanese data. I need to get the information from the JTable and create a file with the name specified in one of the columns.I end up getting ?.doc in one of the columns and hence the file gets created with ?.doc. I know this is an ...
Hi people,I want to load some Cyrillic data from a text file to my database. After going thru the discussions on unicode I unterstand that my Cyrillic data needs to be converted to unicode escape sequences. So that part is done. Now comes the loading part. While loading this unicode data thru ...
423 byte By
yulkl at 2007-9-27 17:13:50
Hi,In working with text file, there is a default encoding to convert the charset into java String. We can check it with System.getProperty("file.encoding").How about in Swing component? Is there another default encoding to convert the text input in the JTextField to java String? I have searched ...
466 byte By
naesc at 2007-9-27 17:18:29
I'm using query params on an HREF to pass some information from JSP A to JSP B. JSP B retrieves the query params and displays it on the screen. I append the query params to the href using URLEncoder.encode("someUTF8Chars", "UTF-8") yet when they come thru on the other side they display as ...
We are planning to implement japanese version our web site. We need to create folders at run time as per the user input. To create directory using japanese characters we are changing the reginal settings to japanese. Using the following code and by using jdk alone, i am able to create folders ...
Hi,We are currently developing a application using Tomcat 4.0, Struts, Java 1.3. This application can be viewed in multiple languages.I have some basic questions regarding date formats. These questions are relatedto the date retrieval and insertion into the database.1. We have some business ...
1033 byte By
gaurangk at 2007-9-27 17:32:57
Hello Friends,This question does not deal exactly with Internationlization feature, but this is the most matching group for this question, so if anyone feels it off the topic i appolgize.I want to read an Excel File having data in more than one language. Mainly in English, Japanese, Chinese, ...
697 byte By
jid1 at 2007-9-27 17:37:49
Hello,I am developing an application in the greek language(in linux). I usethe following tecnique to set my strings to greek:greekstr=new String("something in greek".getBytes(),"ISO-8859-7");But when I try to type into a JTextField then the above can not be used and though it reads ok it shows ...
336 byte By
javanil at 2007-9-27 17:38:03
Can someone point me to some resource on how to implementlocalization of data stored in a database to be displayed in a JSPpage? I have used the ResourceBundle API for localizing static text, am not sure how to use the same for data stored in a Database table.appreciate any response.Thank You ...
Hi there,though I'm not new to Java but I'm new to displaying different fonts in Swing components.I have an Swing-based application which is running on a Terminal Server. It works fine for Central, Western und Northern Europe. The nextcountry to roll out is Greece. So what does a greek user ...
3149 byte By
nome02 at 2007-9-27 17:53:04
Hi,I hope somebody with some SMS/SMPP experience would be able to fix the problem or advise as what to do. OK Now we have an application which is supposed to send an SMS to a recipient on certain occassions and this SMS might contain accented characters. Now in SMPP apparently we have three ...
Can java display any language in the world?
418 byte By
nas74 at 2007-9-27 18:21:03
Hi, I want to use unicode in my applet. I know that I can use unicode charactersby drawString() method of Graphics class but I want to use unicode charactersin Label, Button,... components. I tried to use bellow command to show \ufe78 th character of unicode but it doesn't ...
Hi all,I am having a similar problem as others who tried to read Chinese characters from Excel and insert to Oracle 8i using thin driver. I am using jdk1.4 on Windows 2000. I tried to use what most people suggest by converting the input to unicode first, String input = ...
1342 byte By
prpr1685 at 2007-9-27 18:25:13
Hello,I am having problems converting UTF-8 characters to UCS-2 and vice-versa. I am using JRun 3.1 as servlet/JSP engine, IIS5 as web server, and SQL Server 2000 as database, all running on Windows 2000. According to a Microsoft technote, SQL Server 2000 can only store UCS-2 characters, so I ...
236 byte By
tvperez at 2007-9-27 18:25:22
Is there a way to strip out accents from characters in Java? I am writing an application that needs to strip away any accents from a character. For example, the character '? would need to be transformed into the character 'e'.
1522 byte By
lotusY at 2007-9-27 18:27:57
I perform some simple encoding conversion in Arabic by using Window 2000 IME. Since I have to store data in AS400 subequently and allow to modify through another client access utility such as PComm for Arabic, I have to use IBM-420 for encoding Arabic input from unicode.In testing 1, I just ...
179 byte By
ParkM at 2007-9-27 18:44:15
Does any one know if there are fonts and/or Unicode encodings for native languages like Cree, Ojibway, Chippewa available?Where could I find such a thing?Mike
Right, while this is in my head, and I don't forget it myself... ;-)String myString = "blah";byte[] myWeirdEncodingBytes = myString.getBytes("myWeirdEncoding");myString is in UTF-16, no matter what. The encoding specified in the getBytes() method is the target encoding. So myWeirdEncodingBytes ...
Dear All, I am develoing a 3 tier application. My application supports all the databases (MySQL,Oracle,Sybase,solid etc.) . For internationalizing the application, I want to store the locale specific texts by some storage mechanism ( .properties file or database). In the above scenario, which ...
998 byte By
chandu09 at 2007-9-27 18:45:14
Hi,I hope some genius out there comes up with the solution to this problemHere it is :I am trying to save some files using a java program from the command console , and the file name contains japanese characters. The file names are available to me as string values from an InputStream. When I ...
Hi,I'm trying to URL encode a URL with some chinese characters in them. But it isnt working properly.i.e. When i decode back the encdoed URL (using java.net.URLDEncoder.decode(String) & java.net.URLDecoder.decode(string) respectively), I dont get the same URL back... The chinese characters ...
I have a Java application whose menus and other text varies according to the locale. So far I have a default properties file for English and a zh_CN.properties file for Simplified Chinese. When I run the application on Chinese Windows XP, Chinese text displays fine. When I try to run the same ...
512 byte By
joshdm at 2007-9-27 19:06:04
According to the description for Locale.getAvailableLocales()this method "Returns a list of all installed locales."I'm working with a variety of locales.I need to deal with Singapore (SG) and a few others (Malaysia, Phillipines).If I run through the array returned from ...
729 byte By
jimesp at 2007-9-27 19:07:45
Is it possible to get Greek characters to appear on an Java 1.1.8 applet running on the Microsoft JVM (Internet Explorer 5.5)?I read input in UTF-8 format from a socket and convert it to a string as follows:String strText = new String(byteArray, "UTF8");When I print strText to the Java console, ...
(cross post 'The Java Forum' - it could be my code)Help with Amharic characters range: \u1200 to \u137F - does any one know if it is supported?Have tried various calls as the code below shows. Any ideas please.import java.io.*;(method) Exception thrown{String unicd1 = new String();unicd1 = ...
92 byte By
snife at 2007-9-27 19:25:58
How can I tell what language the characters contained in a certain String object are?
226 byte By
rsolod at 2007-9-27 19:27:19
Hi all.I need to display both russian and latvian (non-Western) characters in AWT. I can do this on java.awt.Graphics java.awt.Graphics.drawChars(...)), but can't on any AWT-component.Can anybody help me?
I have a customer in Belgium who wants a servlet-generated webpage that displays the text in english, but the decimal notation as belgium and the currency as EURO. The problem is that en_BE_EURO does not work because it doesn't exist according ...
395 byte By
parasmk at 2007-9-27 19:30:15
Dear All,I want to read from a properties file (myFile.properties) using ResourceBundle. But the property file must be outside the codeBase, that is in some directory NOT in the classpath.When I give rb.getBundle("C:\\Mylocation\\myFile") I get java.util.MissingResourceException: Can't find ...
I tried this in a JFrame using the unicode thinking it would access the fonts directly from the system - it works for other scripts as you will see if you run it.I also tried it with Chinese and Japanese unicode values and these weren't rendered either - ******! As a DESPERATE MEASURE I then ...
569 byte By
ksouva at 2007-9-27 19:44:19
Hi,I am having a problem with multipart/form-data posts in that all my parameters seem to arrive garbled with ? and other ASCII characters. I am using UTF-8 on all my JSP pages and use the ServletRequest.setCharacterEncoding("UTF-8"). This does not seem to happen with ...
Are their any implications/overheads to having all my JSP's encoded in UTF-8.Cheers....
Hi,I am stuck with this problem for quite a while. A simple program which displays Hebrew characters on JLabel componenets works on one PC but doesnot works (displays rectangular boxes for Hebrew) on other. Both PCs have same JDK and JRE version. I have even checked the fonts installed on 2 ...
I'm trying to use tag libs to i18n my jsp based site. I,m using jakarta i18n based tags. This is what I understand/done so far.Changed the page encoding on all pages to UTF-8.Searched through all of the pages for text/data that has to be i18n. Placed all this in a message tag. The message tag ...
After I create a DB with the encoding option EUC_CN (in Postgresql), I can't get Chinese character store or/and retrieve right in my Java web application. I am sure the problem is not in the web application itself since Chinese characters are displayed correctly, and email with Chinese ...
Does there exist a way to convert from UTF-8 to Shift-JIS encoding?I'm trying to do this conversion in the simplest way possible, and I have run into a brick wall. Any elucidation on how I might go about this conversion would be greatly appreciated.
Hi I have searched and read lots of articles from this forum aboutthis issue. I have seen that this issue has been raised up several times, and most time it get answered and the questioners were satisfied with the answers. I have tried all the solutions I read from this forum, none of them ...
Hi All,I have a problem in Converting Japanese character to Unicode. I would be thankful if anyones let me know about How to get Unicode value from Japanese Text.Thanks In AdvanceSiva
1875 byte By
Paul1234 at 2007-9-27 20:07:41
Background Info: 1.In Java, we can use new File(filename) to create a new file. The filename there is a string denoting the name of the new file. 2.As mentioned in bug4409965, "The 'C' locale in a 7-bit ASCII locale, the 8bit characters enteredn are not read in properly probably because in ...