Problem converting hex -values changes

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.

Pass Java variables in Javascript function

242 byte By Lazy_Codera at 2007-10-1 14:11:16
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,

JFileChooser and Internationalization

790 byte By Garlaschelli_Mauroa at 2007-10-1 14:21:34
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 ...

How to sort objects of other languages (Japanese, chinese, etc)

658 byte By ghussaina at 2007-10-1 14:24:30
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 ...

Non-European Display on JSP

431 byte By vwuvancouvera at 2007-10-1 14:26:50
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 ...

Date to Time

190 byte By nagusatyaa at 2007-10-1 14:47:57
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

Japanese characters from args giving question marks on Japanese OS

1351 byte By stcinifeica at 2007-10-1 14:49:15
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 ...

Converting ThaiHexString To Unicode Character

1190 byte By harlander3000a at 2007-10-1 14:55:01
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 ...

Collation in Simplified Chinese

122 byte By rakesh_modi1972a at 2007-10-1 15:00:08
Does anyone know what collation method is supported in JDK 142 for Simplified Chinese locale? (PinYin/Stroke/Other)

Multilingual textbox

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 ...

deciding if a locale is has right to left or left to right orientation

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

sending mail without SMTP authentication

483 byte By Virendraa at 2007-10-1 15:14:37
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 ...

languages

392 byte By Duke-what-a-great-teddya at 2007-10-1 15:24:47
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 ...

File name Encodeing

365 byte By michaelwaha at 2007-10-1 15:36:11
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 ...

Zip contents of a folder

129 byte By Abin.Mathewa at 2007-10-1 15:38:10
i need code to zip and unzip the details in a folder.....using the java zip utility...can anyone help me in this regard...

How to display unicode or save to file on win 2000

1071 byte By didisofta at 2007-10-1 15:39:05
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 ...

SimpleDateFormat pattern and Japanese

203 byte By richardbirenheidea at 2007-10-1 15:45:38
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

SimpleDateFormat and French

2096 byte By Ganessina at 2007-10-1 16:06:18
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 ...

International characters getting mangled

831 byte By javawanabea at 2007-10-1 16:22:50
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 = ...

six magic cyrillic characters?

2398 byte By vadim.kosareva at 2007-10-1 16:26:50
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 ...

ISO-8859-15 and regexp

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 = ...

can't save file in UTF-8 encoding

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 ...

Problems with some Unicode chars

878 byte By szczypiora at 2007-10-1 16:37:42
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 ...

Trying to save source file to UTF8.

2625 byte By krazeegooka at 2007-10-1 16:42:34
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 ...

General Question about localized user input with pictograms

233 byte By zneroladivada at 2007-10-1 16:42:41
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?

Chinese characters not shown correctly from an include.

792 byte By cbriarnolda at 2007-10-1 16:42:56
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 ...

Unicode Properties

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

Problems with MessageFormat + ChoiceFormat

1267 byte By PaulProgrammera at 2007-10-1 16:55:06
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 ...

Inserting Unicode data into database table .

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 ...

String encoding to and from utf behaves differently

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 ...

Converting GB2312 to UTF-8

2437 byte By nathanwanga at 2007-10-1 17:10:03
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 ...

Inputting Chinese (Unicode) Chars in Java App

1167 byte By faheem786a at 2007-10-1 17:13:42
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 ...

problem in converting the unicode to local language

1830 byte By infyscreena at 2007-10-1 17:16:56
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 ...

properties file specification

288 byte By Anubis-Mana at 2007-10-1 17:24:24
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.

Arabic conversion pain

1442 byte By AdamWalker79a at 2007-10-1 17:24:59
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 = ...

PropertyResourceBundle and XML

853 byte By GarretWilsona at 2007-10-1 17:39:11
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 ...

How to set default encoding of JVM?

728 byte By luke_kaia at 2007-10-1 17:42:18
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 ...

Reg platform encodings

638 byte By tushar3j79a at 2007-10-1 17:49:03
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 ...

Why all fonts are screws up?

619 byte By vwuvancouvera at 2007-10-1 17:49:50
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...

Trying to display Euro symbol in web browser

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 ...

NetBeans 4.1 IDE missing resource exception

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 ...

Saving Japanese Characters

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 ...

Regarding HTML/JavaScript

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 ...

Two questions about i18n

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 ...

I need an Urdu and Farsi Locale

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....

Junk Characters in Devanagari Character Display

537 byte By chetan_pandeya at 2007-10-1 18:21:07
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 ...

How to determine if font matches locale?

645 byte By MarkusSegera at 2007-10-1 18:26:54
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, ...

converting text to Java modified UTF-8

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 ...

Storing XML Strings In Database

517 byte By mjacobscaa at 2007-10-1 18:33:24
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 ...

How to detect UTF8 or ISO88591 characters?

1918 byte By bogotanoa at 2007-10-1 18:33:34
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 ...