I have a problem with the function getFileNamesRev

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
5 posts • Page 1 of 1
akim
Posts:42
Joined: Wed Sep 16, 2015 10:48 am

I have a problem with the function getFileNamesRev

Post by akim »

Hello,

When using the getFileNamesRev function with the paramiter FILTER_FILES the following message appears:

SYS, WARNING, 196, Illegal byte (0xFF) in UTF-8-encoded string, Codepoint::fromUtf8

getFileNamesRev(folder,"*.bak",FILTER_FILES);

What is the problem?

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: I have a problem with the function getFileNamesRev

Post by mkoller »

Which version are you using on which OS ?
The problem you hit might have to do with non-ascii characters in the filenames you are reading, which
we probably already solved in 3.14

akim
Posts:42
Joined: Wed Sep 16, 2015 10:48 am

Re: I have a problem with the function getFileNamesRev

Post by akim »

I use version 3.12 and Windows 7 OS. How can I solve my problem?

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: I have a problem with the function getFileNamesRev

Post by leoknipp »

Hello,

as Martin Koller has written the problem is maybe caused by special characters in the filenames.
Can you please check if the script works when addressing a directory where only one file exists, e.g. about.pnl.

What are the filenames for the directory where the problem occured?

Best Regards
Leopold Knipp
Senior Support Specialist

akim
Posts:42
Joined: Wed Sep 16, 2015 10:48 am

Re: I have a problem with the function getFileNamesRev

Post by akim »

Hello,

This problem occurs when the file name contains the Russian Cyrillic.

I renamed these files. But it would be better to fix this bug.

Thanks for the help

5 posts • Page 1 of 1