Re: About HTML unicode

2004-12-05 Thread Masanori HATA
John Delacour wrote: At 12:31 am +0800 3/12/04, He Zhiqiang wrote: Now i encountered another problem, there are a few files contains not only one charset but also two or more, for example, file1 contains japanese and chinese, if i use open() to load the data into memory, ord and length etc.. c

Re: About HTML unicode

2004-12-03 Thread Ben Morrow
Quoth [EMAIL PROTECTED] (John Delacour): > At 12:31 am +0800 3/12/04, He Zhiqiang wrote: > > >Now i encountered another problem, there are a few files contains > >not only one charset but also two or more, for example, file1 > >contains japanese and chinese, if i use open() to load the data

Re: About HTML unicode

2004-12-03 Thread Ben Morrow
Quoth [EMAIL PROTECTED] (He Zhiqiang): > > I've a problem to convert a unicode character into it's decimal or > Hexadecimal value. The following URL: > http://code.cside.com/3rdpage/us/unicode/converter.html > can easily convert via Javascript function escape(), but i wonder that is > there s

Re: About HTML unicode

2004-12-03 Thread John Delacour
At 12:31 am +0800 3/12/04, He Zhiqiang wrote: Now i encountered another problem, there are a few files contains not only one charset but also two or more, for example, file1 contains japanese and chinese, if i use open() to load the data into memory, ord and length etc.. can't correctly work!

Re: About HTML unicode

2004-12-02 Thread He Zhiqiang
HI all: Thanks masanori's reply and sample code! Before i saw your emai, i did the job and it's indeed so easy. The only trick is to say "use utf8" and then ord and length etc. can correctly handle multibytes. Now i encountered another problem, there are a few files contains not only one ch

Re: About HTML unicode

2004-12-02 Thread Gisle Aas
"He Zhiqiang" <[EMAIL PROTECTED]> writes: > Hi list: I've a problem to convert a unicode character into it's > decimal or Hexadecimal value. The following URL: > http://code.cside.com/3rdpage/us/unicode/converter.html > can easily convert via Javascript function escape(), but i wonder > that is t

Re: About HTML unicode

2004-12-02 Thread Masanori HATA
He Zhiqiang wrote: > can easily convert via Javascript function escape(), but i wonder that > is there some method or function > or modules can do the same job?? If i can do it, then in one html page, > i can display ont only chinese, but > also japanese, korea etc... This is something like HTML

About HTML unicode

2004-12-01 Thread He Zhiqiang
Hi list: I've a problem to convert a unicode character into it's decimal or Hexadecimal value. The following URL: http://code.cside.com/3rdpage/us/unicode/converter.html can easily convert via Javascript function escape(), but i wonder that is there some method or function or modules can do the