Article View: borland.public.cppbuilder.nativeapi
Article #10871Re: Removing unregular characters for Win98 folder name...
From: Thorsten Kettner
Date: Fri, 12 Mar 2004 08:37
Date: Fri, 12 Mar 2004 08:37
22 lines
1801 bytes
1801 bytes
"Vladimir Stefanovic" <antivari@ptt.yu> wrote: >The problem is what to do with some diacritical marks that can >appear in NON West European charset: ( ���Ȯ ). Win XP CAN >access these folders but Win98 cannot. Is there a common >mechanism to replace these chars with similar once, or I have >to make some custom coding. My advice is to find out which chars are really allowed and make a conversion table for all chars: char ConvertToWin98[256]; where you map 'A' to 'A', 'B' to 'B', but '�' to 'A' and '�' to 'D'. Then you get AllowedChar = ConvertToWin98[NamesChar]; Better even, map it to a std::string to be able to convert one char into two or even delete chars: std::string ConvertToWin98[256]; and map '�' to 'E' and '�' to 'AE' and non-printables to ''.
Technical Details
Message-ID:
<405176be$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4050a0e3@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10cc67,c7153abde107ab57 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-03-12 00:39:33 PST From: "Thorsten Kettner" <ANSWERBYthorsten.kettner@otto.de> Sender: "Thorsten Kettner" <ANSWERBYthorsten.kettner@otto.de> Reply-To: "Thorsten Kettner" <ANSWERBYthorsten.kettner@otto.de> Subject: Re: Removing unregular characters for Win98 folder name... Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 80.85.196.92 X-Forwarded-For: 129.225.1.108 References: <4050a0e3@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <405176be$1@newsgroups.borland.com> Date: 12 Mar 2004 00:37:18 -0800 X-Trace: newsgroups.borland.com 1079080638 207.105.83.66 (12 Mar 2004 00:37:18 -0800) Lines: 22 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail