lua-users home
lua-l archive

Re: Chinese characters in a string

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


Rob Kendrick <rjek@rjek.com> writes:
> Lua's string functions only operate on byte quantities, and are only
> really useful for ASCII text. However, Lua strings themselves can
> contain any characters, and thus are quite safe to contain UTF-8
> data. You need to use a Unicode-away string library to manipulate
> them usefully, however.
It depends on what your needs are. UTF-8 is regular enough that you
can usefully manipulate it directly in many cases. This is especially
true for languages like Chinese where notions like case etc, aren't
meaningful.
-miles
-- 
Road, n. A strip of land along which one may pass from where it is too
tiresome to be to where it is futile to go.

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