ZTree.com  | ZEN  | About...  

 Index   Back

[General] Non-ascii characters in filenames ...   [General]

By: Ben Kent       
Date: Aug 14,2022 at 17:32
In Response to: [General] Non-ascii characters in filenames ... (Bob Selby)

> I have a utility that scans a bunch of files and reports the
> following error - "UnicodeEncodeError: 'ascii' codec can't encode
> character u'\u2014' in position 100: ordinal not in range(128)" but
> doesnt report which file :-(
>
> I suspect it cannot handle filenames that are not pure ascii - is there
> a way with the excelent ZTW to filter any files with non-ascii characters
> so that I can rename them ???
>
> Regards,
> Bob

Bob


Specific case
See Matthias's post



General case

This character range filespec should do it

*◄-ᒇ►*.*

As the forum will probably mess it up, showing it as one character a line

*
Alt-[
alt 0127 (using the number pad)
-
alt 65536 (using the number pad)
Alt-]
*
.
*


Ben

152 views      
 

Messages in this Thread

 
95,961 Postings in 12,120 Threads, 350 registered users, 45 users online (0 registered, 45 guests)
Index | Admin contact |   Forum Time: Sep 26, 2022 - 10:05 am UTC  |  Hits:50,904,422  (9,210 Today )
RSS Feed