[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] winapi 1.3 Useful Windows API binding
- From: HyperHacker <hyperhacker@...>
- Date: Mon, 9 Jan 2012 16:27:51 -0700
2012/1/9 steve donovan <steve.j.donovan@gmail.com>:
> There's a new function that expands two-byte Unicode values into UTF-8 strings.
>
> local U = winapi.utf8_expand
> winapi.set_encoding(winapi.UTF8)
>
> txt = U '#03BB + #03BC + C'
> print(txt)
> print(U '#03BD')
> ---> OUTPUT
> λ + μ + C
> ν
>
I wonder if it wouldn't be better to use the existing notation &#xxx;
that HTML uses?
--
Sent from my toaster.