Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Filter out garbage characters
Message
From
07/12/2007 23:57:59
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01269971
Message ID:
01274122
Views:
17
>>You might want to be careful with this if there is a possiblity of Asian-language text (e.g. Chinese, Japanese, Korean) which use double-byte character sequences.
>>
>>You probably also want to include the chr(9) (horizontal tab) as one of the valid characters.
>
>Asian or other non US character data will not be an issue here (at least not in the forseeable future).

The easiest way to automatically expand the list of characters is to go from 128 to 255, and if isalpha(n), include it - it is a character in the current codepage. You only need to recompile the app in a specific codepage (see set cpcompile) for this to work. I've tried it with Serbian diacritical characters, with Cyrillic too, and it works - actually I can have variables with any characters which are allowed in the current set("cpcompile"). If I wanted, I could have all my variables, names of functions, prg files etc in Cyrillic :).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform