On Tue, Dec 31, 2024 at 10:15 PM Maxim Kim <vim-dev-git...@256bit.org>
wrote:

> I am currently using python -m base64 to convert text in vim buffer to
> base64.
>

Do you use “!python -m base64” to base64 encode the text in the current
buffer?

I have tried to replace it with a new built-in function but it looks like
> it can't handle some of utf-8:
>
> echo base64_encode(list2blob(str2list("tab:›\ 
> ,nbsp:␣,trail:·,extends:…,precedes:… showbreak=↪", true)))
>
> image.png (view on web)
> <https://github.com/user-attachments/assets/a5599a4a-9f76-4599-a07a-c8c5db287aaa>
>
>
I do have a patch to add the str2blob() and blob2str() function. But the
problem is it currently works properly only for ASCII characters.

Regards,
Yegappan


>

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/CAAW7x7mMzNpyKDwRwCnpany9L-Tb2fC0MaRD_M2Yh_vLZ1YJ0g%40mail.gmail.com.

Raspunde prin e-mail lui