01-17-2018, 12:03 PM | #1 |
Enthusiast
Posts: 38
Karma: 10
Join Date: Jun 2016
Location: Minnesota USA
Device: Amazon Paperwhite 3G
|
Non-ASCII File Names
When I open an edit an epub that has a non-ASCII file name (i.e. 副本保存失敗.epub) I cannot save it. I get the following error:
Code:
calibre, version 3.14.0 ERROR: Could not save: Saving of the book failed. Click "Show details" for more information. You can try to save a copy to a different location, via File->Save a copy Traceback (most recent call last): File "site-packages\calibre\gui2\tweak_book\save.py", line 199, in process_save File "site-packages\calibre\gui2\tweak_book\save.py", line 211, in do_save File "site-packages\calibre\gui2\tweak_book\save.py", line 74, in save_container File "site-packages\calibre\utils\filenames.py", line 487, in atomic_rename error: (123, 'MoveFileEx', 'The filename, directory name, or volume label syntax is incorrect.') Is there an option in the editor to allow using non-ASCII file names? |
01-17-2018, 12:34 PM | #2 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You can use non-ascii filenames on operating systems other than windows or on utf-8 based windows systems.
|
Advert | |
|
01-17-2018, 12:58 PM | #3 |
Enthusiast
Posts: 38
Karma: 10
Join Date: Jun 2016
Location: Minnesota USA
Device: Amazon Paperwhite 3G
|
Right, this is a Windows 10 US Version. It supports non-ASCII names in the file manager. I guess I'm assuming it is a UTF-8 based system.
Some users of the Chinese Conversion plugin in the Calibre editor have:
They are confused when they get an error since the OS supports non-ASCII file names and the editor successfully opened the non-ASCII named file. I'm currently recommending they do a "Save a copy" using a temporary ASCII name and then rename it back to the desired name. It's a bit of a kludge. |
01-17-2018, 10:43 PM | #4 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Supporting non-ascii filenames does not mean a system is utf-8. Windows has a mess of legacy encodings it uses (google windows code page).
|
01-18-2018, 07:46 AM | #5 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
This should take care of it: https://github.com/kovidgoyal/calibr...2f7e27e9cb768f
|
Advert | |
|
01-18-2018, 08:02 AM | #6 |
Enthusiast
Posts: 38
Karma: 10
Join Date: Jun 2016
Location: Minnesota USA
Device: Amazon Paperwhite 3G
|
Thanks!
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
File names in File explorer | vvilmos | Onyx Boox | 5 | 10-05-2012 07:40 AM |
Extended ASCII characters in txt file | pshute | Conversion | 10 | 02-28-2012 06:57 AM |
Mass import of books metadata from an ASCII file: HELP NEEDED | LARdT | Calibre | 4 | 07-08-2010 04:05 PM |
File Names | Vulcan | Sony Reader | 4 | 01-02-2009 04:03 PM |
Ascii file | ProDigit | Lounge | 1 | 12-25-2008 10:08 PM |