Article View: borland.public.cppbuilder.internationalization
Article #219Re: Unicode File Name
From: Andrue Cope [TeamB]
Date: Wed, 23 Mar 2005 15:15
Date: Wed, 23 Mar 2005 15:15
32 lines
2156 bytes
2156 bytes
Steven Wong wrote: > it is not shown properly in Debugger and tntListView. > I have used Arial Unicode MS font already Is your machine configured to use the Asian locale? The debugger is a VCL application so it will be converting into MBCS using the current code page. If that code page doesn't have Asian support you will not get satisfactory results. Actually from memory the debugger converts differently depending on whether you are using Tooltip expression or Evaluate. ISTR seeing different results from each when we were working in this area. I think one was performing the conversion correctly and the other was just performing a crude strip down to 8-bit. > Sysutils::FindFirst I don't think that is Unicode aware - it presumably just wraps FindFirstFile(). It too will be converting from Unicode into MBCS and will suffer the same 'corruption' if your machine is not configured for the Asian locale. If you call the Windows functions FindFirstFileW/FindNextFileW you will get back Unicode strings and if you pass these straight into tntListView things should be fine. Getting the strings correctly displayed in the debugger, however, might be problematic. -- Andrue Cope [TeamB] [Bicester, Uk] http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID:
<42418860$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4240871e$1@newsgroups.borland.com> <42413174$1@newsgroups.borland.com> <42417985@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10297d,91b27321b48bf5ed X-Google-Attributes: gid10297d,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Andrue Cope [TeamB]" <no.spam@not.a.valid.address> Subject: Re: Unicode File Name Newsgroups: borland.public.cppbuilder.internationalization References: <4240871e$1@newsgroups.borland.com> <42413174$1@newsgroups.borland.com> <42417985@newsgroups.borland.com> Date: Wed, 23 Mar 2005 15:15:25 +0000 User-Agent: XanaNews/1.17.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 NNTP-Posting-Host: 217.207.223.34 Message-ID: <42418860$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1111591008 217.207.223.34 (23 Mar 2005 07:16:48 -0800) Lines: 32 X-Authenticated-User: acope Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail