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

Unicode support #68

Open
douglasmaieski opened this issue Sep 17, 2024 · 0 comments
Open

Unicode support #68

douglasmaieski opened this issue Sep 17, 2024 · 0 comments

Comments

@douglasmaieski
Copy link

Hi,

I noticed some problems regarding Unicode text, I'm using the following function to go around it:

(defun fix-text-utf8 (s)
  (let* ((encoded (babel:string-to-octets s))
         (real-len (length encoded))
         (diff (- (length encoded) (length s))))
    (str:concat s (str:repeat diff " "))))

and the example where it's needed:

(gtk4:text-buffer-insert buffer iter-start (fix-text-utf8 proper-replacement))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant