286 byte By
samdudea at 2007-10-1 14:10:40
Guys,I have a hex value 0x81(ascii 129). when I convert that to a string by passing this value through byte array it gets converted to " ? "(ascii 63) which is 3f in hex when converted back. I am not sure what is wrong here. Could someone help me.Thanks in advance.
HI,I need to pass java variables as parameters when calling javascript function.Some how it does not recognized.onclick = "Myfunction(this, <%=javavar%>)"Any Kind of help is appreiciated.Thanks in Adv,
I wuold like to manage Internationalization with JFileChooser. I build a main class (FileSystemBrowser) like:public class FileSystemBrowser{....private JFileChooser chooser;public FileSystemBrowser(Locale currentLocale){chooser = new JFileChooser();chooser.setLocale(currentLocale);}}I create ...
Hi all, I want to internationalize my application. For example my client is a Japanese or Chinese, and he wants the messages to be displayed in his repective language or region. My client creates the some objects (e.g, TreeNode objects for JTree) in my application, and he wants the JTree with ...
With my browser set up for a non-European language, all the characters from the message property file are shown as the question mark on JSP. They are displayed as what they shall be after I insert the following line:<%@ page contentType="text/html; charset=utf-8"%>I have a look at some ...
hi mates,can any one give me the code for a class that converts date to time?i.e for example 01/01/1970 to railway time (09:00, 10:45, 17:00 etc)thanks in advance
Hi,We are internationalising our product to japanese, and one of the features is to be able to open a file containing japanese characters from a double click on a japanese windows OS.The double click is set up in the registry, and indeed it works properly for most characters. There are a few ...
Hi,Can someone please help me. I have Thai characters in Hex and I convert them into the character using the following algorithm below. My problem is when I do a System.out.print on the character I get `?` displayed. Why am I not getting the character. Can you please tell me how to correct what ...
Does anyone know what collation method is supported in JDK 142 for Simplified Chinese locale? (PinYin/Stroke/Other)
2299 byte By
ammua at 2007-10-1 15:09:05
Hi,I want to make a text box multilingual,for that i am using struts 1.2 i use 2 links in my jsp page one for English and one for Hindiand two seperate application resources files for that. wheni am cliking on hindi the jsp page will take the caption from applicatonresources_hi.properties files ...
167 byte By
flalara at 2007-10-1 15:14:07
How can i find if a Locale is right to left or left to ringt orientated from a servlet? Do I need to use ConponentOrientation object form java.awt?Cheers
Hi AllI have to made application which can send mail with SMTP authentication and without SMTP authentication I completed sending mail with SMTP authentication.But I have a problem with sending mail with sending mail without SMTP authentication. I know if mail is sent with out SMTP ...
I think this is a very much asked question, sry for it.I'm wondering how to make different languages for a project.For example, you make buttons with labels in english but you would like to change this quick to chinese or spanish.I've thought about setting all this in a file(maybe xml?) like ...
My JFilechooser cannot display the existing Chinese file name correctly.I can input a new Chinese file name, but the file name become "rubbish"when back to Windows.It seem not a font display problem. problem seems a encoding problem between Java and Windows.Do any one know how to control the ...
i need code to zip and unzip the details in a folder.....using the java zip utility...can anyone help me in this regard...
I'm not sure if this is a stupid question but I'll try it.First my system win 2000 ( German ) with installations of additional languages.jdk 1.5.0My first code is:System.out.println('\u0400');Why does I get the ? sign in std. output? This is a cyrillic sign sign and I've installed cyrillic ...
I want to use SimpleDateFormat. Does anybody know, that when I use GG in the format pattern how it will be interpreted or displayed if my locale is Japanese?Thanks and RegardsRichard
Hi,I use SimpleDateFormat for converting a string to Date.My input will be a String in MMM DD, YYYY format and I want the output in yyyy-MM-dd format.The piece of code I hv written works well for English, but not for French.My code:String substituteValue = "Avr 06, 2005";SimpleDateFormat ...
Hi all,All of this character set stuff is new to me. I have the following bit of code which, when it encounters a non-english character, substitutes with a question mark. For example, the spanish ?The data comes from an XML file which, when opened, properly displays the ?InputStreamReader ir = ...
Hello!Sorry, if such topic have already been submitted.Could someone, please, clarify and/or propose any solution for the next problem?There are six cyrillic characters which are converted from Unicode into UTF-8 incorrectly: 3 uppercase letters (\u0410 \u0401 \u041D) and 3 lowercase letters ...
817 byte By
RPPoelsa at 2007-10-1 16:30:27
Hi!I am trying to match a certain pattern from an ISO-8859-1/15 String.The matcher returns false when i use non LATIN-1 characters.1 String text = "f鲻 b錼";2 String pattern = "\\bb錼"; // beginning of word3 Pattern p = Pattern.compile(pattern, Pattern.CASE_INSENSITIVE);4 boolean found = ...
744 byte By
webplsa at 2007-10-1 16:33:41
Hi,I've read everything I can find on this subject, from these forums to Google to newsgroups. Still no success.I am simply trying to save a file in UTF-8 format. This code depicts the methods I'm using:File file = new File("myFile");FileOutputStream fos = new ...
Hello! I've got a little problem with the code beneath:package test;import java.text.*;import java.util.*;public class Main {public static void main(String[] args) {NumberFormat format = NumberFormat.getCurrencyInstance(Locale.UK);System.out.println(format.format(17));}}When it executes, it ...
I'm trying to save HTML source from " http://kr.yahoo.com" in UTF8 format so when I open it up on notepad, I could read the Korean characters.When I do this manually from IE, using "save as..." option and choosing unicode(UTF-8) format, I could open up the saved file in notepad and read all the ...
If you have an applet in a browser how is Japanese or Chinese sharacter input handled. Is it merely a keyboard setting and character input is a series of keystrokes? Is it functionality provided by the OS, or a special plugin?
I am having a problem with the encoding from a page that I include into my main page. What I have done is created a footer with information that is used often between many pages. When this information is included, it does not show up correctly encoded. However, if I manually copy the ...
289 byte By
yida at 2007-10-1 16:53:15
Is it possible to get a Unicode property of a character in Java? I am particularly interested in the Joining_Type Unicode property, and I was hoping to be able to do something like the following:Character.getJoiningType(c);Youssef EldakarBibliotheca Alexandrina
All,First, this isn't strictly an i18n question, but it deals with various Format implementations which I understand are commonly used in this arena, thus my question is posted here.I have an application that uses MessageFormat as a template to an XML-encapsulated request. Recently we've been ...
400 byte By
jpn1iea at 2007-10-1 16:57:06
HI All,I want to know how to insert unicode data into table .For example i want to store arabic words in the table.The arabic ranges from u0600 to u06ffWhen i say insert into user values ('\u0600\u0601',2);the first value is stored in the table as the value i inserted above.How can i store ...
1586 byte By
kumlalia at 2007-10-1 17:08:33
Hi all,Here is my code and question:try {// Shows as "缜ğĞıİ鲋şŞ" in iso-8859-9 aware platform.String iso88599 = "\u00e7\u00c7\u011f\u011e\u0131"+ "\u0130\u00f6\u00d6\u015f\u015e\u00fc\u00dc";// Encode iso88599 as utf-8String iso88599ToUtf8 = new String ...
Thanks for all the encoding experts, if you could anwser my question.To make it simple, I tried to convert a file contains a single Chinese characterin GB2312. It's a rare character with Unicode scalar value: 9A15.Using debug, I can see its GB code value: F2 5B.I used Microsoft XP with Chinese ...
Hi,I'm a using a development tool built in Java which is used to develop database applications. The software name is called Servoy (www.servoy.com)The vendor says that the application supports unicode. Based on that today I tried to input different languages by adding the languages in the ...
Hi all,i am trying to convert unicode char to my local language and print it on label but i am not getting the proper output. the code is given below package test;import java.util.*;import java.awt.*;public class KanProp extends Frame{Locale lcl;ResourceBundle resbdl;Label lbl;public ...
Hi, I whant to internalize my project, but I cannot read from UTF-16 encoded file. Must I use only charachters like \u1212 or can I use other unicode encodings?Please, help to solve this problem! I need your help!Thanks a lot!:)Best, Aram.
Hi All,I'm having great trouble with some arabic processing I'm trying to do. I am pulling data from an iSeries via JDBC (IBM Toolbox for Java driver). The iSeries CCSID is 420. I'm getting this as a byte array from the resultset and generating a java string:byte[] binData = ...
I was filled with joy this morning to discover that in Java 5.0 the Properties class can finally read and write XML (using loadFromXML() and storeToXML()). This means that we can actually use UTF-8 encoded properties files, instead of using some outdated international-unaware encoding for ...
I want to set the default encoding using -Dfile.encoding. But I find it can't take effect in OutputStreamWriterCodes:String encoding = System.getProperty("file.encoding");System.out.println("file.encoding in properties:"+encoding);OutputStreamWriter out = new OutputStreamWriter(new ...
Hi,I am relatively new to i18n. I have some queries. It wud help if someone could provide answers or direct me to possible source of info.Sun's documentation for javac says that if -encoding option is not specified with javac, it picks up the default platform encoding. Now, where is the ...
My non-European language Java web application was runing fine on my development Window XP box on the eve of June 30. In the morning of July 1st, I was quite shocked to see the language text on all pages were shown as something like "灏忚溅/鍗¤溅/鎽╂墭杞?. I didn't even reloaded Java class files th...
1440 byte By
Donny74a at 2007-10-1 17:50:39
I have some problem displaying the EURO sign in JSP. I have searched this forum but I cannot find any answer for my questions, even though I found a very similar questions in this forum ( http://forum.java.sun.com/thread.jspa?forumID=16&threadID=316158).I am using JDK 1.3.1. I have ...
1641 byte By
FTGMana at 2007-10-1 17:57:41
Hi,I'm new to the NetBeans IDE and I'm trying to use it to add language support for my app.I have created a package "res" , and in that package there is a class "uiLang.java" and "uilang.properties". "uilang.properties" contains "default language" and "de - german"uiLang.java is a simple ...
1953 byte By
dw30144a at 2007-10-1 18:12:49
Help!I'm trying to save Japanese characters as-is in my SQL Server 2000 database using the Microsoft SQL Server 2000 JDBC driver SP3, but all that gets saved is the encoded characters. I need them saved the EXACT way that they are entered in the database and not encoded so that the column can ...
1059 byte By
Raj557a at 2007-10-1 18:13:15
In my HTML code, I wrote <select name=sel1><option value="Volvo">Volvo</option><option value="Indica">Indica</option><option value="Maruthi">Maruthi</option></select><input type="submit" value="submit" onSubmit="return validate1()">In java ...
470 byte By
amsmotaa at 2007-10-1 18:13:33
Hi all:I'm i18ning a jsp application but i have two questions for now:1) Wich is best to use? The Sun JSTL <fmt:> tags or the Jakarta Taglibs <i8n:> tags?2) I have now the various languages in a .properties file resource bundle. What should i do if i want the resource bundle to ...
99 byte By
chiaua at 2007-10-1 18:18:17
Is there anyone who has worked around this problem, or has any suggestions?Thanks....
Dear All:I am working on a JAVA Devanagari Word Processor in which user types in English and adjacent JTextBox converts it into Devanagari(Hindi) Fonts.This is how I have specified the fonts:Font f2 = new Font("Other", Font.PLAIN, 18);textbox2.setFont(f2);But my problem is that I see a lot of ...
Hi there,we have an application where the user can manage his data in many different languages. Also, the user can define fonts for each language. To change the font, we display a dialog which looks like a standard font chooser dialog in Microsoft products (i.e. you can select the font name, ...
976 byte By
jhrneona at 2007-10-1 18:30:41
Hi everyone. That I'm trying to do is to get the text from a ".txt" file and write it in another file formated to Java modified UTF-8 format. I read that I can use the OutputStream.writeUTF(String s) function.Then I read the data from the text and I use a DataOutputStream for writing text ...
I store a number of XML configuration strings in my database. On disk, these are encoded as UTF-8. But when I read them in, I'm sending them to the database using the PreparedStatement method stmt.setString(). If I need to write the string out to disk again, I once again encode it using UTF-8 ...
Hello Everybody,I have to read the data in a certificate request that has some invalid characters, with invalid characters I mean, they are different from [A-Z,a-z, 0-9,!,",$,%,&,/,(,),?,? etc], so I read it in Java and all invalid characters appears to me as two squares like this: they ...