Hi,May I ask how can I deal with unicode for Chinese in java? How can I encode the Chinese character to Octet string? Thanks
641 byte By
mizsuz at 2007-9-30 15:17:16
Dear All,I have a jsp that retrieves unicode from an Oracle utf-8 database. I have been using getUnicodeStream to pull this out because I have several double byte languages in the database. With getString I just get ? characters. BTW - the API says getUnicodeStream has been deprecated in favor ...
Hi!My problem is the following. I am using the struts framework for developing a web application, which only should support English. I use the bean:write tags for writing out numerical values, specifying the format witht the format attribute (###,###.##). Because I do not want to define these ...
Hi,I am using j2sdk1.3.1. Recently I found that i can't run java program. For example, if i run the simple hello world program using: java HelloWorldApp, the error is like this:WARNING: Default charset MS950 not supported, using ISO-8859-1 insteadException in thread "main" ...
I am try to upgrade my program from 1.3 to 1.4In JDK 1.3, we can control the select of font.properties by modify the "user.language" , "user.region" before any Swing Component is created.But in JDK 1.4, the Default Locale is used inserts of the two system properties,I tried to modify the ...
Hello All,I have an issue while converting bytearray to String.The problem primarily is, I have a PDF which contains a picute embedded in that.I need to read this PDF and has to conver it into String.When converting to String I'm facing some issues with data getting corrupted. When I write the ...
428 byte By
msharaf at 2007-9-30 15:34:02
Hello,I am trying to send arabic text from one j2ee server to a servlet in an another server, through a URLConnection. I get ? instead of arabic text, although i have set the encoding of the url connection to windows-1256.Even if I am using a jsp in the same server to call the servlet, it gives ...
Hello,I already searched the froums for a soluton to my problem but couldn't find any for it though I tried some of the things that were proposed. I have a MySQL Database where I store Japanese characters in SJIS. I tested if they are in SJIS and they are.I am using mysql 4.1.3b-beta, ...
660 byte By
jGiftson at 2007-9-30 15:50:23
Hi All, I am using Locale and Resource Bundle to display Japanese Text in browser. When I paste a japanese character in the resourcebundle file it's displaying as ?. When I tried displaying in browser using JSP. I have the same as ?. I am using windows 2000 english version and Weblogic 8.1, ...
2836 byte By
wf7777 at 2007-9-30 16:15:56
I use ResourceBundle to realize internationalization, normally it behaves right. but the following code displays nothing. I don't know why.public class MyJob extends JPanel implements ActionListener {public static ResourceBundle bundle = ResourceBundle.getBundle("resources.myjob");static ...
853 byte By
mslv at 2007-9-30 16:18:26
Hi all,I need to convert a UTF-8 string to UNICODE.Here is an example:UTF-8: ?#140;?#142;?#137;?#154;?#155;?#135;?#136;?#147;?#152;?#153;?#154; UNICODE: ČčĎďĚěŇňŘřŤťŮůI have tr...
176 byte By
J_J_78 at 2007-9-30 16:21:16
When I try to convert int values to ASCII code, some of the characters are displayed as "?". For example value 144. How can I display those characters correctly?
Will JDK support persian calendar?One problem that java.util.Calendar has with persian (or Jalali) calendar is that month numbers does not match with persian calendar.
825 byte By
asmolen at 2007-9-30 16:32:16
I am currently internationalizing an pre-existing application. In the process of doing so, I have encountered the following situation:in rbconstants.properties fileokMsg=OKin java classfinal String LOCALIZED_STRING = rb.getString("okMsg");System.out.println(LOCALIZED_STRING + ...
561 byte By
yuecat at 2007-9-30 16:33:44
My program only has English version. When setting "Standards and formats" to Chinese, the buttons in the dialogs of JOptionPane are in Chinese instead of OK, Cancel. So in the beginning of the program, I set the locale to Englist by Locale.setDefault(English). In JDK1.3.1_11, the strings of ...
2264 byte By
bonyboy at 2007-9-30 16:34:41
Hi,currently I'm writing a web app that supports I18N. Right now, it supports 2 languages (Eng, Thai), and I achieve this by using ResourceBundle for labels and error messages. The source pages (*.jsp), and resource files (*.properties) are, of course, encoded in UTF-8.The problem arises when ...
501 byte By
ranjitkm at 2007-9-30 16:40:23
I am using class GregorianCalendar but in languages german,spanish and Italian strange problem happens. In these languages, for the months whose day 1 is Sunday (per normal/default (US) calendar), day 1 is shown as Monday. This is true for Feb 2004 and August 2004.So when viewed in any of these ...
652 byte By
webda at 2007-9-30 16:40:36
HelloI want to intenationalize my webApp and for that I want to put some properties files in my web-inf directory in order to keep them "protected".the problem is how do I get them from my jsp?I was looking aroun but didn't really find a complete answer to this.Let's say I have some files in ...
523 byte By
VoytekG at 2007-9-30 16:43:26
Hi everyone!I am doing a research project on software localization and internationalization, and was wondering if anyone here knows of any tools that can be used while making java programs to make it easy for designers and programmers to port them to different languages.I'm thinking, for ...
2486 byte By
v@rma at 2007-9-30 16:46:04
We have an intranet application that is live for sometime now. Our new requirement is to be able to store and view Japanese characters in some of the fields.We have Oracle 9.2.0.5 with NLS_CHARSET as UTF8. Our application server is WebLogic6.1sp6 on Solaris v5.8 64 bit.We use both thin driver ...
147 byte By
J_J_78 at 2007-9-30 16:51:46
How can I insert chinese characters to MySQL db from java app? I need that characters are shown in db like: 网站推广
413 byte By
bryanlwc at 2007-9-30 16:57:31
I have a system with mysql database, in the system all encoding is UTF-8, i want to know if in client which is use utf-8 encoding and then send the form data to server side process. The server will do some process like insert data to database, if i no set the mysql encoding, default is latin1, ...
101 byte By
J_J_78 at 2007-9-30 17:03:24
how can I convert chinese characters to hexadecimal format when I read those char from a file?
I am attaching a program which gives me inconsistent output with the Java Doc. JavaDoc says MEDIUM date format should return something like thisMEDIUM is longer, such as Jan 12, 1952This is true for US locale.If I change the locale to JAPAN , the output is not even close.Is it documented ...
91 byte By
mnGlobal at 2007-9-30 17:14:58
I need to get japanese characters to hex format? And format should be like 0xddddd.
Hello all,I am using ResourceBundle to load property files which are used by the GUI. I have put all the property files along with the required GUI classes in a jar file. I am using applet to display the GUI. Whenever I access the applet, eventhough all the files are available in the jar file, ...
Hi,I understand that TimeZone.getDefault() returns the time zone according to teh user.timezone property value. When I change the time zone on my machine and restart the JVM I see the change reflected in the getDefault return value.Here are my questions:1) Is it guaranteed that upon start-up ...
Hello,Currenlty I'm havin some i18 problems with an application.The problem is that the application should not only display localized messages and labels but also localize the units.E.g instead of showing 'meter', for en_UK it would show the contry default measurment unit - like 'feet' or ...
It took me several hours to find the reason for this exception:java.util.MissingResourceException: Can't find bundle for base name properties\com.domain.prj.huj.MainApp.Messages, locale de_DEat java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:804)at ...
475 byte By
Ram@sun at 2007-9-30 17:46:45
Hi,I am a beginner.In my sample application,there is a query which gets executed when i click on a button and generates the result set from a database.I am passing a parameter when i click on button.But this is not working with any other locale.How to pass the locale specific string as the ...
5374 byte By
hot_at27 at 2007-9-30 18:00:21
Hello, I have failed to insert UTF8 data directly into MySQL4.1. More accurately I have some characters being displayed correctly (chinese) while other are not. My developement env. is stated below:Tomcat 5MySQL4.1.4 (all server, database, table, columns and connections are set to character set ...
500 byte By
cringe at 2007-9-30 18:05:12
Hi guys!I want to get all Locales for which I can find ResourceBundles. I have a directory lang/ and in there are 2 files myResources_de & myResources_en. In my program's configuration I want to display a JList with the Locales DE and EN now, and when I add a ResourceBundle for another ...
1444 byte By
Notre at 2007-9-30 18:10:04
I'm trying to brainstorm ways that I can design my application so that I have the benefits of a drop down / combo box list and free form text entry while at the same time being as globalization ready as possible. I like the feature in some combo boxs where the end user may select a choice from ...
871 byte By
jdhillon at 2007-9-30 18:17:56
I am facing problems and Feel there is something else that I should do to change the encoding of a String from one encoding type to other.Please suggest if there is something wrong with the following code:/* convert from UTF-8 */public static String convertFromUTF8(String s) {String out = ...
HiI am working on a internationalized application where we display the content from Property based Resourc Bundle. The resource bundle is in Unicode format and we use UTF-8 charset in our JSP files to display it. Till this point its working perfectly. But in our application on some JSP pages we ...
717 byte By
additome at 2007-9-30 18:30:33
Hi all.I have a system which need to get some staff data from a other database (with staff no, staff name, etc.)the problem is i cannot get some of the character in chinese name from that database (the hong kong fonts). It just "blank" that character and show nothing.I've checked in the ...
776 byte By
rkadam at 2007-9-30 18:34:15
I am unable to retrieve form POST data in utf-8 and display it back in Browser Client. I have added this line in the HTML form:<meta http-equiv="content-type" content="text/html; charset=utf-8">In Servlet Code, I have specified the encoding:// Retrieve the parameter data from ...
Hi,I am trying to retrieve a chinese page using HttpURLConnection and as a result getting all chinese characters as ?.I know it has to be something with the fonts but cannot figure out exactly what. Any help in this regard will be great.Below is my sample code...URL connect = new ...
I got the following code: import java.util.*;import java.text.*;public class Calendario { public Calendario() { } public static void main(String args[]) {TimeZone tz = TimeZone.getTimeZone("Europe/Rome");Calendar today = Calendar.getInstance(tz);SimpleDateFormat sdf = new ...
243 byte By
PUJA123 at 2007-9-30 18:44:42
I AM SENDING NATIVE CHARACTER AS A QUERY STRING BUT THIS STRING IS NOT DISPLAYED AS UTF-8 FORMAT.EXAMPLE http://localhost:7001/test/tset1.jsp?usname=chinese charcterthis chinese character is not pickking up correctly
1116 byte By
vinutht at 2007-9-30 18:45:30
I need to zip a html page which contains some chinese characters, I am able to zip it and create a zip filebut the problem is when i open the zip file and view the html file it displays junk characters insteadof chinese charactersHere is what i am doing ByteArrayOutputStream bStream = new ...
644 byte By
Karnator at 2007-9-30 18:47:35
I apologise if this question has been asked befor, but here's the dealI have a database full of HTML character codes that a colleague is using in a servlet. They are in japanese. One of the lines looks like this.インフォメーションI'm ...
585 byte By
pkg42 at 2007-9-30 18:48:45
Hiwhen i uses dates I am used to use simpledateFormat.formatwhich gives me my date in my own Locale.like the following example:import java.text.SimpleDateFormat;import java.util.Date;import java.util.Locale;public class DateTest { public static void main(String[] args) {Locale.setDefault(new ...
One entry in my properties file looks like this:someKey=LABELwhere the value means the string "LABEL" (with 6 leading spaces).The ResourceBundle created from my properties file simply returns "LABEL" for getString("someKey");.On one hand this is comprehensible, the ResourceBundle sees the ...
507 byte By
yientau at 2007-9-30 18:53:18
I want to convert a string which is in this form : "20041003T070000Z"to a locale time. The meaning of the string isyear 2004, 3th October 7:00 AM (which is 3:00 PM at Malaysia here) How can I convert this string so that it would follow my (Malaysia) locale time? I want to get the time from the ...
326 byte By
mkmelin at 2007-9-30 19:28:53
Is there any way I can make the character encoding of request parameters be UTF-8 by default?I know i can do String testinput = request.getParamter("testinput");String utf8InputString = new String(testinput.getBytes("ISO-8859-1"),"UTF-8"); ... but how do I make them UTF-8 by ...
475 byte By
vanchwan at 2007-9-30 19:48:16
Dear all,I've got a problem with storing Chinese Characters in MSSQL table. The list below is my setting of my project:HTML/JSP -- "charset=big5" (in both "meta" and "import page")MSSQL server -- The field of storing Chinese Characters are in nvarchar formatBut the Chinese Characters are ...
511 byte By
FUN_ONE at 2007-9-30 19:48:53
How do I store and retrieve the Japanese characters into and from a database. My database supports Unicode characters.But, how do I read the content and put it onto the JSP, and store it back into the database, if required. I've tried this and my browser doesnt display all the characters even ...
1668 byte By
MikoLone at 2007-9-30 19:51:27
All,My task is to read an XML file and convert all of the Russian Characters in the file to latin characters. (e.g. д would be e and ж would be h)When I read the Russian Characters I get wierd characters that look like ?. I tried to read the file in as UTF8 but now instead of the ...
2589 byte By
mobee at 2007-9-30 19:52:58
I have an application property page with some Hebrew messages, and it works just fine if I do not configure the Charest response encoding to UTF-8, However I am forced to set the page encoding in order to use MySql data retrieval to be displayed on the same page, also in Hebrew.when I declare ...