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

438 views      
 

Messages in this Thread

 
96,565 Postings in 12,213 Threads, 350 registered users, 50 users online (0 registered, 50 guests)
Index | Admin contact |   Forum Time: Dec 11, 2023 - 10:01 am UTC  |  Hits:59,842,068  (6,811 Today )
RSS Feed