🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #10858

Removing unregular characters for Win98 folder name...

#10858
From: Vladimir Stefanovic
Date: Thu, 11 Mar 2004 17:17
25 lines
1698 bytes
Hi,
I want to dynamically create folders based on the
customers' name (eg. Name Surname). I want to
make a function that will remove all eventual
unregular characters that customers name may have.

I have already solved the problem with appearances
of special chars that are not allowed: \ / : * ? " < > |
I replace them with '_'.
( I know that the name cannot contain these chars,
but they can be foisted ;)

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.

When I say similar: ���Ȯ = SDCCZ

I need an idea... Maybe some comparative table.

Best regards,
Vladimir.
Technical Details
Message-ID: <4050a0e3@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,c7153abde107ab57,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-03-11 09:40:43 PST
From: "Vladimir Stefanovic" <antivari@ptt.yu>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Removing unregular characters for Win98 folder name...
Date: Thu, 11 Mar 2004 18:17:43 +0100
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 213.137.116.246
Message-ID: <4050a0e3@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1079025891 213.137.116.246 (11 Mar 2004 09:24:51 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail