Pain & suffering. Filenames on PocketBook
dev.to·2d·
Discuss: DEV
📦Personal Archiving
Preview
Report Post

Hi!

I have a wonderful PocketBook ebook reader. But every filename with non-ASCII characters turns into gibberish if it was copied from pc (via USB). As a workaround I was copying a zip archive for then to unarchive it and all filenames were OK.

Only after some embarrassing number of evenings lately (playing with rsync, cp, convmv and ALL AVAILABLE encodings) I’ve figured out the reason... I was mounting the ebook with iocharset=iso-8859-1 by default, but on the ebook itself its partitions were mounted with iocharset=utf8 (with codepage=437 in both cases, btw). Bingo!

How to mount with needed iocharset (utf8 here):

# Like so: sudo mount /dev/sdc /mnt --options iocharset=utf8
sudo mount /path/to/device /path/to/mountpoint --options iochars...

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help