Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert file names in cyrillic to be seen properly
Message
De
02/09/2011 04:26:23
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
02/09/2011 03:28:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01522555
Message ID:
01522561
Vues:
47
>To be honest, the problem on Windows level, but, perhaps, programmatic solution does exist in Foxpro. I downloaded huge karaokebase.zip file with thousand songs in kar format. When uncompressed file and directory names are not readable
>
>Æd âapßG¿F8 (&óá½Ña¿n).kar
>I am expecting something like
>АБВГДЕЖЗ.kar
>
>According to zip creator he used Win-1251 encoding which, I presume, works properly when files uncompressed on Russian Windows .
>And my question whether it would be feasible at all using Foxpro ( or anything else ) to convert file names to unicode either via renaming or copying to other place.

You may try to play with Windows shell object (to do the actual renaming, because I'm not sure that Rename command would respect Unicode), and strconv() function to convert from 1251 to Unicode, probably by converting to DBCS first, then to Unicode. The locale ids are a mess - the numbers are not coming from the same table as the codepage numbers, so you may need to read the help for strconv() to look them up.

You may need to make sure Cyrillic is included on your machine - check the regional settings, available language support.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform