[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Chinese characters in a string
- From: Miles Bader <miles@...>
- Date: Fri, 07 Dec 2012 17:48:51 +0900
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.