[Gambas-user] How to manage filenames whit invalid characters in gambas.

Bruce Steers bsteers4 at gmail.com
Thu Feb 16 00:07:39 CET 2023


On Wed, 15 Feb 2023, 21:22 Bruce Steers, <bsteers4 at gmail.com> wrote:

>
>
> On Wed, 15 Feb 2023 at 21:06, Martin <mbelmonte at belmotek.net> wrote:
>
>> El 15/2/23 a las 16:50, T Lee Davidson escribió:
>> > I am not aware of any. System issues like that can be handled in a
>> shell
>> > relatively easily.
>> ok, indeed I use a bash script, but I want to know if there, in Gambas,
>> are something to do that.
>> Regards.
>> Martin.
>>
>
>
> Well no , because they are not "invalid" characters.
> you could write something pretty easily using Replace and Move
>
> the odd chars seem to be where the dot should be.
> for any 3 letter extension something like this should do the trick...
>
> If sFile[sFile.Len-4]<>"." then Move sFile to Replace(sFile,
> sFile[sFile.Len-4], ".")
>
> BruceS
>

Are they non utf-8 chars? you may need to use String.Replace() as the
String. Methods handle non utf-8.

BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230215/512ddb5d/attachment.htm>


More information about the User mailing list