On Wed, Jan 1, 2025 at 6:50 AM Yegappan Lakshmanan <yegapp...@gmail.com>
wrote:

>
>
> 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.
>
>
I have now made these functions work with Unicode strings. I will send out
a PR later.

- 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/CAAW7x7m%3Dm_%3D%3DCHM4CtMp_x8H5TRuNYXA6oU0QPkE1yLFmakGoQ%40mail.gmail.com.

Raspunde prin e-mail lui