Article View: borland.public.jbuilder.java.language
Article #7826Re: Retrieving Chinese characters from Properties file
From: Alex
Date: Thu, 17 May 2001 04:12
Date: Thu, 17 May 2001 04:12
35 lines
2311 bytes
2311 bytes
hi, i am writing a java app can dynamic translation of resource string. and i meet the same problem at chinese encoding. i save my properties file into unicode with window2000 notepad. but i still can't show chinese char at my app. can u help me? alex Email: alex@263.net.cn Mobile::+86 13910006598 On Tue, 10 Oct 2000 14:50:29 +0200, Sheilagh Bill <SheilaghB@impro.co.za> wrote: >Hi > >My application allows dynamic translation of resource strings from the >screen, stores them to a resource properties file. A user can then >select a locale (hence the relevant properties file) for display. This >works correctly for Latin 1 encoding. > >In a Chinese Windows O/S the characters can be captured and written to >the file and appear correct when viewed with Notepad or Wordpad. >However when the getString method of the ResourceBundle is used to >retrieve the resource strings the characters are changed. Looking at >Borlands sample multi-lingual program I notice that all characters above >ASCII 127 are entered as a unicode escape sequence. This reads back >correctly but is this required? I have tried writing the file with >JavaOutputStreamWriter and EncodedOutputStream but the Chinese >characters are still not written out as unicode escape sequences. > >Please can anyone help, I don't know where to look anymore. >Thanks > >Sheilagh Bill
Technical Details
Message-ID:
<2nj6gt8a8tqeprdnep66ngcsecuh8o0j6f@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!sn-xit-02!supernews.com!bignews.mediaways.net!news-fra1.dfn.de!news0.de.colt.net!colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<39E31095.A34AC6BF@impro.co.za>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,b0148acea17952b4 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-05-16 21:42:49 PST From: Alex <zzling@21cn.com> Newsgroups: borland.public.jbuilder.java.language Subject: Re: Retrieving Chinese characters from Properties file Date: Thu, 17 May 2001 12:12:47 +0800 Message-ID: <2nj6gt8a8tqeprdnep66ngcsecuh8o0j6f@4ax.com> References: <39E31095.A34AC6BF@impro.co.za> X-Newsreader: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 202.106.252.217 X-Trace: dnews 990072774 202.106.252.217 (16 May 2001 21:12:54 -0700) Lines: 36 Path: arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!sn-xit-02!supernews.com!bignews.mediaways.net!news-fra1.dfn.de!news0.de.colt.net!colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews