Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emojis break Chrome Bookmarks #396

Closed
mythofechelon opened this issue Jul 18, 2019 · 1 comment

Comments

@mythofechelon
Copy link

commented Jul 18, 2019

TL;DR: Emojis in Google Chrome bookmarks breaks the Bookmarks plugin.

Full details:

I realised that Keypirinha had stopped indexing new Google Chrome bookmarks.

As Keypirinha hasn't been updated since 2018/11/14, I suspected that a Google Chrome update had broken the integration so I setup a fresh installation in a VM but it worked fine.

So, as it stood to reason that my problem must be something specific to my usage, I completely reinstalled Google Chrome and Keypirinha but neither made a difference.

It now seemed that the problem was due to my data / configuration.

I researched this general problem and found #55 which led me to the console which reported the following:

09:18:09.160 ** ERROR: Error from Bookmarks.Bookmarks.on_catalog: <class 'UnicodeDecodeError'>: 'charmap' codec can't decode byte 0x81 in position 500790: character maps to
Traceback (most recent call last):
File "C:\Program Files\Keypirinha\default\Packages\Bookmarks.keypirinha-package\bookmarks.py", line 60, in on_catalog
File "C:\Program Files\Keypirinha\default\Packages\Bookmarks.keypirinha-package\providers\chrome.py", line 43, in list_bookmarks
File "C:\Program Files\Keypirinha\default\Packages\Bookmarks.keypirinha-package\providers\chrome.py", line 78, in read_bookmarks
File "lib\json_init
.py", line 296, in load
File "lib\encodings\cp1254.py", line 23, in decode

I researched this and found https://stackoverflow.com/questions/9233027/unicodedecodeerror-charmap-codec-cant-decode-byte-x-in-position-y-character so I used Notepad++ to search "%localAppData%\Google\Chrome\User Data\Default\Bookmarks" for non-ASCII characters and found lots that had been there for a long time.

I used https://chrome.google.com/webstore/detail/recent-bookmarks/olndffocioplakeilhkgenfgdincjlpn to view my recent bookmarks and found that I had bookmarked https://emojipedia.org/ which had emojis in the name - renaming this fixed the problem.

@polyvertex

This comment has been minimized.

Copy link
Member

commented Aug 13, 2019

This looks like a duplicate of #336.
Thanks for reporting it

@polyvertex polyvertex closed this Aug 13, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.