lua-users home
lua-l archive

Re: [ANN] winapi 1.3 Useful Windows API binding

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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.

AltStyle によって変換されたページ (->オリジナル) /