Chinese input character count
| From: | Ronald Wiplinger | Date: | Tue, 06 Nov 2007 02:16:28 +0000 |
| Subject: | Chinese input character count | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-264091@lists.php.net to get a copy of this message | ||
I thought I did it correct to define in the header:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
to display chinese characters correct. It works.
However, if you type in a form directly, than each character will be
translated to UTF-8 with a sequence of #....;
I could then count the numbers of # and had the amount of Chinese
characters.
Now I found that there are other Chinese characters in my database,
which I cannot read, but on the web they are displayed correct Chinesse.
How can I count these Chinese characters?
bye
Ronald