UTF-8 file/doc to another UTF-8 file/doc

1616 byte By bonhama at 2007-10-3 11:49:26
I needed to knw if this piece of code will copy characters frm a UTF-8 file to another UTF-8 file ( don't ask why i am not simply copying the whole file!!)There are a couple of other queries I have :1. when I specify the charset as 'UTF-8' , does the JVM actually read the bits frm the input ...

Want clarification on charset concepts

1579 byte By pslkwana at 2007-11-26 12:28:51
Hi,after reading some articles about java i18N, i am still not very clear about the reason why the problem (below) exist..1. write a java class, say Test1 (source code in UTF-8) with some multibyte characters, say chinese, japanese chars, 2. compile with option -encoding....3. run in locale, ...

How to display timezone in GMT+hhmm format

316 byte By Indranil.Sarkara at 2007-11-26 13:08:15
HiI want to display timezone depending on default timezone set in property files.So what I am doing is fetching all the timezones id by TimeZone.getAvailableIDs() and want to display the matching one in GMT+hhmm formatExample : If id is EST then want to display GMT-0500Expect ...

Can I set the default encoding for filewriter?

665 byte By sami@dakua at 2007-11-26 13:16:31
Hi all, I have used the following line to write into a file. BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(new File(filename.txt))); Now, if I write Russian text into the file, It gives me only question marks. I know the problem is because of the Filewriter, which uses the ...

Bilingual in java (English and Marathi)

274 byte By jalagamvenkata at 2007-11-26 13:44:16
I want to display user interface in English and Marathi.How can i get this feature from java .As of my knowlege , by internationlization or by using language transulators.Can you please suggest me to go forwardwith regardsvenkatarao

need help

338 byte By sudeeraa at 2007-11-26 13:44:22
Guys,im using netbeans 5.5 n get an error while executing following code, private ResourceBundle i18n; i18n = ResourceBundle.getBundle("i18n", getLocale());the error is "Can't findbundle for base name i18n,locale en_US"this code work well in dos prompt.how can i correct ...

Localized Digits

255 byte By Tajallya at 2007-11-26 13:59:53
Hi,I'm trying to convert an ASCII format digit to locale specific one. java.util.NumberFormat does not do this. There should be some way, having a locale (e.g. ar_SA), give you numbers in that format:123 => "١٢٣"

prevent doubtle-byte / multi-byte characters

1499 byte By AMAa at 2007-11-26 14:22:35
I have a J2EE web application using Struts. I want to accept ASCII characters as well as other European Languages that have Single-Byte Character Sets (SBCS). But I want to prevent Double-Byte / Multi-Byte Characters (DBCS).I want to prevent the user from entering double byte / multi byte ...

UTF8 encoding

995 byte By jap-indiaa at 2007-11-26 15:14:53
Hi ,I have a web -application with DB2 8 as back-end.My application needs to support non-Ascii characters like greek.1.Database is UTF-8 enabled.2.WebSphere application server is configured to handle UTF-8 encoding.3.response.setContentType("text/html; ...

Control Windows Applications Usage

195 byte By escobar5a at 2007-11-26 15:33:09
Hello,I want to know if there is any way that i can know in java when a windows application is launched and when it is closed.Thanks in AdvanceJuan Sebasti醤 Escobar C.

Unicode in Java Applet

274 byte By deepusrpa at 2007-11-26 15:42:53
Helo, -> I want to build an applet which has to display unicode.-> my applet will be similar to a soft keyboard.-> Please let me know how to bring unicode characters on buttons and lables. Its really urgent.hoping for the solution

Unicode in WIndows and Linux

529 byte By rainagamboaa at 2007-11-26 15:46:30
HiI am working on a Java web application on Linux and it is in Japanese. I have an "export to CSV file" function and use OutputStreamWriter with utf-8 encoding. Everything is fine except when I view this file in Windows Excel.. the file produces the wrong characters.Alternatively, when I try to ...

wildcard lang and country if variant specified?

489 byte By Joost_Schoutena at 2007-11-26 15:48:30
Hi,I use Locale's in my app which can be like "en_US_0000001" where the variant is a licenseId for my client. Depending on this licenseId I want to set client specific localisation. But I would like the properties file to have something likelabels_*_*_0000001.properties so that when a ...

Internationalization in Tamil

402 byte By JoeBorlanda at 2007-11-26 15:57:50
I am currently working on internationalization in swing application. How to Use Tamil in Java internationalization.Whether I have to install any tamil font and add font.properties.ta file in jdk.How to convert english to tamil unicode ?.Where I have to download all those things?I would ...

Internationalization

1266 byte By HoneyLemona at 2007-11-26 16:27:16
I plan to design a web page with language options like English and Traditional Chinese. User could choose the output language they want.My computer uses the Hong Kong SAR for the regional and the language setting. When I open a jsp page, it displayed "?title?" for the title. Below is an example ...

Cyrllic characters getting converted to special characters.

420 byte By Jguya at 2007-11-26 16:49:26
I am facing a problem when cyrillic character is being sent from JSP to servlet ,its getting converted into some other special character.I am using request.setCharacterEncoding("UTF-8") on servlet.And on jsp I am using <%@page pageEncoding="UTF-8" contentType="text/html; ...

Internationalization in Tamil - Two texts are not displayed

323 byte By JoeBorlanda at 2007-11-26 16:49:37
HiI got the unicode for all my tamil text.The problem i faced is i am not able to display two words, ie Agent Details in tamil is not displayed as a one string. I am able to display agent as one string and details as one string.How to solve this?.Please provide the ...

Internationalization in Tamil in jdk1.4

534 byte By JoeBorlanda at 2007-11-26 17:21:08
I am able to display tamil characters in my swing application creating fallback directory under jdk/jre/lib/fonts/fallback and paste the ARIALUNI.TTF font in that directory.It works fine in jdk1.5.(refered in ttp://weblogs.java.net/blog/joconner/archive/2006/09/internationaliz.html)But jdk1.4 ...

Problem in using russian chars

784 byte By samidakua at 2007-11-26 17:26:25
Hi,I have an application where the jsp page displays a link in russian chars.I have written the following lines to set the encoding to utf-8 in the jsp page:<%@ page contentType="text/html; charset=UTF-8" %><META http-equiv="Content-Type" content="text/html; charset=utf-8">Now these ...

Getting Arabic text in unicode

469 byte By raminderboxa at 2007-11-26 18:05:32
Hi All,Need a help On:Getting Arabic Text typed in a Text field on JSP page.(STRUTS application)I have set Font for textField as one arabic (using CSS).When i type in it..it shows Arabic characters.Now I need to display that arabic characters on next page..and also need to store in DB. DB ...

html:text converting the chinnes letters to unicode when error occurs .....

897 byte By srikanth_bsba at 2007-11-26 18:41:33
Hi allThank you to every one for giving support who are really needs.....Here i have a small query that goes like this Iam converting a web page from english version to chinees version This is a struts applicationIn one jsp page i have 2 text fileds like name and descrptionHere iam entering ...

Use UTF-16? How to correctly implement localisation.

628 byte By finalbetaa at 2007-11-26 19:13:35
Reading the on-line documentation, I was under the impression the default format for Java when reading properties files was UTF-16 ( http://java.sun.com/docs/books/tutorial/i18n/text/convertintro.html )However when saving a file (using gedit in GNOME) to UTF-16 I get an error. (Java can't read ...

fallback font and applet?

333 byte By mitchgarta at 2007-11-26 19:28:48
Suppose you wanted an applet to display some non-standard characters, and you installed the font in the jre/lib/fonts/fallback directory. Would you have to install the font on the server machine where the applet is served from, or on each client machine that will point a browser at the web page ...

Convert ASCII CSV file

631 byte By Matthew@bba at 2007-11-26 19:34:51
i have a program which able to digest a CSV file into the DB (SQLanywhere), however my original CSV file is a ASCII format, where the program is only accept UTF-8. is there any method can convert the CSV file from ASCII to UTF-8 automatically?Q1.is it using the following for conversion?byte[] ...

inserting image in database

94 byte By prashant85a at 2007-11-26 19:43:22
i want to insert a image in database(mysql) using servlet/jsp.please help me out

Using Malayalam in JSTL

6179 byte By PraveenGeorgea at 2007-11-26 19:46:00
Hi,I have been trying to use malayalam using jstl.Here is my codei have a properties file called home_ml_IN.propertieswhich contains entries likemessage.createmobchannelid=നിങ്ങളുടെ ജനകീയ ...

Unrecognised Char in GB2312 character set using java InputStreamReader?

1307 byte By ngstevea at 2007-11-26 20:43:56
Reading the following file chinese GB2312 html file from http://news.xinhuanet.com/local/2007-02/13/content_5732705.htmusing the InputStreamReader with GB2312 encoding as shown belowpublic class readGB2312html file{//........TmpText declarations.....public static void main( String[] args ...

Stroring chineese chars exactly into mysql DB...possible?

485 byte By srikanth_bsba at 2007-11-26 21:15:30
Hi Thanks giving me support for all kinds of issues which i have....Here i have a small doubt.. i hope you people can clear it...Here is my doubt..Iam new to this internationlizarion issues ...Iam hadling a chineese project in that i want to store the chineese char's exactly into mysql ...

One question about java modified utf-16 ? why modifed?

749 byte By passenger2007a at 2007-11-26 22:13:46
Intensively asking for the i18N expert to clear me please!1. As you know , in unicode utf-16 encoding, surrogate pair was encoded as two "two bytes" , while, in java modified utf-16 encoding, surrogate pair was modified as expressed by two "three byte" , why ? what's the advantage? maybe can ...

JDK Change Date settings

284 byte By SDN_kida at 2007-11-26 22:35:35
I need to change the date settings in JDK1.3 version. Any guide on this? I'm very new to this so pls guide me in detail..want to change from CST to CDT time zone. Appreciate if u can send a screen shot to mailprabhu@gmail.comMessage was edited by: SDN_kid

I18n convention : key naming and layout

1446 byte By gl-suba at 2007-11-26 22:39:43
Hi,I'm quoting an archived post that did not receive answers and i agregate a few ones :-"I'm thinking of introducing I18N into my project, which is fairly large now, and is continually growing at quite a quick rate, but I'm unsure as to the best wya to implement it.I know about the details ...

Spanish support using English Keyboard

895 byte By shannaraa at 2007-11-26 22:43:38
HiWe have a web based chat applicaiton where in we have an end user chatting with a helpdesk agent. At the agent side, he needs to chat with the end user in Spanish. But the agent has an English Keyboard. The constraints in this scenario are1. The agent needs to chat with various end users ...

Urgent. How may i update a properties file in execution time?

187 byte By sebas984a at 2007-11-26 22:56:47
Urgent, please. How may i update a properties file in execution time? I need to update the file by means of a web page and i need the changes be reflected immediately.Thanks

I18N of SELECT Lists (Drop Downs)

480 byte By sleclerea at 2007-11-26 22:59:31
I have a good grasp of the simple resource bundle approach to I18N. Is there a best practice for internationalizing values that appear in drop down select boxes? These lookup values are often stored in the database. How does this reconcile with the use of resource bundles.Shipping ...

I18N - sending unicode data to Excel from servlet displayed as "?"

549 byte By subbu__HCLa at 2007-11-26 23:20:25
Hi, In my application we are export some unicode data to Microsoft Excel 2003 from servlet . For that i am using the following code. response.setHeader( "Content-Disposition", "attachment; filename=results.xls" );response.setContentType( "text/xls" );theHeader.append("\u30ec\u30dd\u30fc\u30c8 ...

I18N - UTF-8 problem in Greek Language

501 byte By parthi83_pka at 2007-11-26 23:28:16
Hi all, My application is multilanguage app. Now we r trying to go with Greek lan.We're using SQL server DB where we getting the language code(el) and diaplay in JSP page using struts framework. I've include the code <@ page encoding...@> in UTF-8 format. but the greek lan. is not ...

Why does "Calendar.get(Calendar.DAY_OF_WEEK)" always return 2?

1038 byte By abramiaa at 2007-11-26 23:41:19
Greetings,I have been doing some testing that class "java.util.Calendar" always returns 2 (two) for the day of the week.I am using JDK 1.5.0_11 on Windows XP.Here is a code snippet:java.util.Calendar c = java.util.Calendar.getInstance();System.out.println("Calendar.get(Calendar.DAY_OF_WEEK): " ...

Help me how to set charset UTF-8 in SQL Server 2000

152 byte By parthi83_pka at 2007-11-26 23:49:48
Hello guys,Pls anyone help me out from "how to set the charset UTF-8" in SQL Server 2000.How do i find the default charset in that?

how can i get the exact Range of codePoints of every UnicodeScript(Block)?

3960 byte By amy_starfisha at 2007-11-26 23:54:58
hello dear all,this problem has puzzled me for a long time.how can i get the exact Range of codePoints of every UnicodeScript(Latin,Han,.....) or UnicodeBlock(Basic_Latin, Latin-1 Supplement, Linear B,......)?so that i can do some iterations to display the Unicode Mapping (like the Windows ...

How can I prove I'm sending UTF-8

5368 byte By hopia at 2007-11-27 0:03:24
Hi,I know I have international (meaning Unicode above 0x7F) characters (e.g. ? in a String that I use to invoke a CGI script on a server. The CGI script does not get the data correctly. I can prove to myself that the String (in particular the password data) displays properly before sending and ...

Are there some Font supporting all utf-16 code including all supplementary?

474 byte By passenger2007a at 2007-11-27 0:24:17
Are there some Font supporting all utf-16 code including all supplementary code?In an application, I need to show some text encoded in utf-16, which is multilingual andHave some of supplementary character, so want to know a font to show it correctly? While find nothing from the internet, so ...

how to pass the chinese input insert into DB

14716 byte By landoaa at 2007-11-27 0:33:07
hi guys,i am the new one in developing the multilingual software.let me explain : the tools used are : Jboss 4.0.4 , MySQL, Eclipse.user key in the chinese or other languages[like greek] in the jsp page. then will uses <form .......... method="post" action="create_user_confirm.jsp"> to ...

Charset in uploaded file

1166 byte By f94-mgia at 2007-11-27 0:37:21
Hi all,I'm developing a internationalized web application. Should work all over the world, all languages.One function is to allow the user to upload his CSV with contacts, exported from Outlook or GMail for example.Everything seems to work fine if clients have charset Windows-1252 or ...

Problem in Response when i tried for Greek

599 byte By parthi83_pka at 2007-11-27 0:51:36
Hi allmy project is multilanguage, now greek is going onUsing struts framework, try to acheive this....so, i retrive the greek value from the resource properties file, not from DB(SQL Server200)am using eclipse ide so when i debug, i found that response was not set in UTF-8, charset was not set ...

Displaying Locale Name as Chinese(Simplified) or Chinese (Traditional)

439 byte By Rahul.Joshia at 2007-11-27 1:07:24
Locale class returns a name for the locale appropriate to be displayed to the user using getDisplayLanguage method. But this returns "Chinese(China)" for zh_CN locale, and "Chinese(Taiwan)" for zh_TW locale. Is there a way to get "Chinese (Simplified)" and "Chinese (Traditional)" respectively, ...

not able to display UTF-16 char in web page

454 byte By googa at 2007-11-27 1:16:47
hi,i am developing a web application, where user enters input in japanese. once user submits the form. I need to check the input string with entry in a UTF-16 file. If any entry found in the file. I need to reutrn the entry details to the user on the JSP page. when i submit the page, i am ...

Problem w/ ResourceBundle and default locale

1157 byte By NickDGa at 2007-11-27 1:29:05
I have a couple of resource bundles:- Messages.properties (default, in English)- Messages_nl.properties- Messages_fr.propertiesWindows' regional settings are set to Dutch (Belgium) which makes the Java default locale 'nl_BE'.I want to get the resource bundle using the locale 'en'.I expect ...

How can i send the chinese sms using java J2EE(web application)

8335 byte By landoaa at 2007-11-27 1:42:14
hi,i have the difficulty on sending chinese sms using J2EE application.i try to input the chinese word to jsp and send the plain text sms. i received the sms with plenty of question mark "?". i think it is regarding to the conversion of String to some kind of format that supported by mobile ...

How can i display arabic characters from resource bundle (properties file)

801 byte By wawerua at 2007-11-27 1:57:19
I am working on a project involving swing components and hava used netbeans to develop a swing components based interface. I have used the internalisation wizard to generate the resource bundle inro a properties files which works successfully.I have created a locale for the arabic version and ...

Currency format for locale de_CH

1228 byte By Nicua at 2007-11-27 2:03:39
Hello,One of my customers has told me that "Here in Switzerland, currency amounts with 0 cents are written with a long dash, 4.-- instead of 4.00."It seems that Java doesn't know it. If I'm using the de_CH locale, I will always get 4.00. How can I achieve this with Java besides replacing .00 ...