Zsh History File Encoding Issue with UTF-8 Characters
Issue Description When opening .zsh_history file via vim, some UTF-8 encoded characters (e.g. Japanese, Chinese characters) are not displayed correctly, and vim shows the fileencoding as latin1 instead of utf-8.
For example, the following shows how Japanese/Chinese characters are displayed incorrectly in vim:
2466 : 1762759121:0;locale 2467 : 1762759501:0;echo "ä½<83><80>好" 2468 : 1762759519:0;echo "ã<81><83>³ã<82><83>³ã<81>«ã<81><83><81>ã<81>¯" The actual content of the .zsh_history file is as follows:
→ fc -l -3 2410 locale 2411 echo "你好" 2412 echo "こんにちは" And if you check the fileencoding in vim:
read more
Solution to Restore Recently Deleted Albums from iCloud Photos Library
Issue Description During the Beta testing of the new iPadOS 26, I accidentally deleted all albums in my iCloud Photos Library on my iPad, which then synced the deletion to my other Apple devices. This resulted in the loss of all my photo albums, although the photos themselves remained intact in the “All Photos” section.
Solutions 1. Find the Deleted Albums in the Photos.sqlite Database Find the Photos.sqlite database file in the Photos Library package.
read more
Solution to the Failure to Pass Cookies into yt-dlp When Using mpv
Issue Description When using mpv to play videos from Bilibili, users may encounter issues where mpv fails to pass cookies to yt-dlp correctly, regardless of whether the cookies are already in Netscape format, leading to error messages like the following:
→ mpv --cookies-file="~/bilibili_cookies.txt" --ytdl-raw-options=format=100028+30280 https://www.bilibili.com/video/BV1HMH7z4ES4 [ytdl_hook] ERROR: [BiliBili] BV1HMH7z4ES4: Requested format is not available. Use --list-formats for a list of available formats [ytdl_hook] youtube-dl failed: unexpected error occurred Failed to recognize file format.
read more