Re: [PHP] opening utf-8 files - chinese mb characters

2009-04-09 Thread Andrew Ballard
On Thu, Apr 9, 2009 at 1:53 PM, Shawn McKenzie wrote: > Per Jessen wrote: >> Andrew Ballard wrote: >> >>> A bit off topic, but Ctrl+I no longer brings up the Page Info in >>> Firefox like it used to -- at least on my Windows computers. (It opens >>> the bookmark list in the sidebar.) Does it do di

Re: [PHP] opening utf-8 files - chinese mb characters

2009-04-09 Thread Shawn McKenzie
Per Jessen wrote: > Andrew Ballard wrote: > >> A bit off topic, but Ctrl+I no longer brings up the Page Info in >> Firefox like it used to -- at least on my Windows computers. (It opens >> the bookmark list in the sidebar.) Does it do differently under Linux? > > On FF 2.0.0.6 Ctrl-I brings up th

Re: [PHP] opening utf-8 files - chinese mb characters

2009-04-08 Thread Per Jessen
Merlin Morgenstern wrote: > I use windows right click for this. > > Actually I isolated the problem, but still I can't figure out how to > solve it. The page is not utf-8, but ugb2312. > > I am already sending the header through php: > header("Content-Type: text/html; charset=ugb2312"); > > And

Re: [PHP] opening utf-8 files - chinese mb characters

2009-04-08 Thread Per Jessen
Andrew Ballard wrote: > A bit off topic, but Ctrl+I no longer brings up the Page Info in > Firefox like it used to -- at least on my Windows computers. (It opens > the bookmark list in the sidebar.) Does it do differently under Linux? On FF 2.0.0.6 Ctrl-I brings up the info page - perhaps 3.0 cha

Re: [PHP] opening utf-8 files - chinese mb characters

2009-04-08 Thread Merlin Morgenstern
Merlin Morgenstern wrote: Paul Gregg wrote: In mail.php.general, Merlin Morgenstern wrote: Hello everybody, I am having some trouble with utf-8 encoding. The html file containes chinese characters and looks ok, when opened in a browser. Now I want to extract some text from the file. In

Re: [PHP] opening utf-8 files - chinese mb characters

2009-04-08 Thread Merlin Morgenstern
Paul Gregg wrote: In mail.php.general, Merlin Morgenstern wrote: Hello everybody, I am having some trouble with utf-8 encoding. The html file containes chinese characters and looks ok, when opened in a browser. Now I want to extract some text from the file. In order to do this I do: $han

Re: [PHP] opening utf-8 files - chinese mb characters

2009-04-08 Thread Paul Gregg
In mail.php.general, Merlin Morgenstern wrote: > Hello everybody, > > I am having some trouble with utf-8 encoding. The html file containes > chinese characters and looks ok, when opened in a browser. > > Now I want to extract some text from the file. In order to do this I do: > > $handle = fo

Re: [PHP] opening utf-8 files - chinese mb characters

2009-04-08 Thread Merlin Morgenstern
Andrew Ballard wrote: On Wed, Apr 8, 2009 at 11:38 AM, Per Jessen wrote: Merlin Morgenstern wrote: Hello everybody, I am having some trouble with utf-8 encoding. The html file containes chinese characters and looks ok, when opened in a browser. Now I want to extract some text from the fil

Re: [PHP] opening utf-8 files - chinese mb characters

2009-04-08 Thread Andrew Ballard
On Wed, Apr 8, 2009 at 11:38 AM, Per Jessen wrote: > Merlin Morgenstern wrote: > >> Hello everybody, >> >> I am having some trouble with utf-8 encoding. The html file containes >> chinese characters and looks ok, when opened in a browser. >> >> Now I want to extract some text from the file. In ord

Re: [PHP] opening utf-8 files - chinese mb characters

2009-04-08 Thread Merlin Morgenstern
Per Jessen wrote: Merlin Morgenstern wrote: Hello everybody, I am having some trouble with utf-8 encoding. The html file containes chinese characters and looks ok, when opened in a browser. Now I want to extract some text from the file. In order to do this I do: $handle = fopen($file, "r")

Re: [PHP] opening utf-8 files - chinese mb characters

2009-04-08 Thread Per Jessen
Merlin Morgenstern wrote: > Hello everybody, > > I am having some trouble with utf-8 encoding. The html file containes > chinese characters and looks ok, when opened in a browser. > > Now I want to extract some text from the file. In order to do this I > do: > > $handle = fopen($file, "r"); > $

[PHP] opening utf-8 files - chinese mb characters

2009-04-08 Thread Merlin Morgenstern
Hello everybody, I am having some trouble with utf-8 encoding. The html file containes chinese characters and looks ok, when opened in a browser. Now I want to extract some text from the file. In order to do this I do: $handle = fopen($file, "r"); $contents = fread($handle, filesize($file));